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

Byteorder(Error)

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

Io(Error)

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

InvalidImei

Invalid IMEI number.

InvalidProtocolRevisionNumber(u8)

Invalid protocol revision number.

MissingMobileOriginatedHeader

Missing mobile originated header.

MissingMobileOriginatedPayload

Missing mobile originated payload.

NotADirectory(OsString)

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

Oversized

An oversized message.

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

Undersized(usize)

An undersized message.

UnhandledInformationElements(HashMap<InformationElementType, InformationElement>)

Some information elements weren't handled during reading.

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

Utf8(Utf8Error)

Wrapper around std::str::Utf8Error.

WalkDir(Error)

Wrapper around walkdir::Error.

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<Utf8Error> for Error
[src]

fn from(err: Utf8Error) -> Error

Performs the conversion.