Type Alias diesel::prelude::ConnectionResult

source ·
pub type ConnectionResult<T> = Result<T, ConnectionError>;
Expand description

A specialized result type for establishing connections.

This type exists to avoid writing out diesel::result::ConnectionError, and is otherwise a direct mapping to Result.

Aliased Type§

enum ConnectionResult<T> {
    Ok(T),
    Err(ConnectionError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ConnectionError)

Contains the error value