Enum sbd::error::Error [] [src]

pub enum Error {
    Byteorder(Error),
    Io(Error),
    InvalidImei,
    InvalidProtocolRevisionNumber(u8),
    MissingMobileOriginatedHeader,
    MissingMobileOriginatedPayload,
    NotADirectory(OsString),
    Oversized,
    Undersized(usize),
    UnhandledInformationElements(HashMap<InformationElementType, InformationElement>),
    Utf8(Utf8Error),
    WalkDir(Error),
}

Crate-specific errors

Variants

An error while reading bytes from a stream with the byteorder crate.

A wrapper around a std::io::Error.

Invalid IMEI number.

Invalid protocol revision number.

Missing mobile originated header.

Missing mobile originated payload.

We expected a directory, but this isn't one.

An oversized message.

Oversized doesn't demand a size since we don't want to find out how much there really is.

An undersized message.

Some information elements weren't handled during reading.

This is bad, because we might not write those IEs back out.

Wrapper around std::str::Utf8Error.

Wrapper around walkdir::Error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.