Enum diesel::result::Error [] [src]

pub enum Error {
    InvalidCString(NulError),
    DatabaseError(String),
    NotFound,
    QueryBuilderError(Box<StdError + Send + Sync>),
    DeserializationError(Box<StdError + Send + Sync>),
    SerializationError(Box<StdError + Send + Sync>),
    // some variants omitted
}

The generic "things can fail in a myriad of ways" enum. This type is not indended to be exhaustively matched, and new variants may be added in the future without a major version bump.

Variants

InvalidCString
DatabaseError
NotFound
QueryBuilderError
DeserializationError
SerializationError

Trait Implementations

impl From<NulError> for Error

fn from(e: NulError) -> Self

impl From<TransactionError<Error>> for Error

fn from(e: TransactionError<Error>) -> Self

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

impl StdError for Error

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl PartialEq for Error

fn eq(&self, other: &Error) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result