Enum routing::messaging::Error [] [src]

pub enum Error {
    MetadataTooLarge,
    BodyTooLarge,
    Serialisation(SerialisationError),
}

Error types relating to MPID messaging.

Variants

MetadataTooLarge

Used where the length of a header's metadata exceeds MAX_HEADER_METADATA_SIZE.

BodyTooLarge

Used where the length of a message's body exceeds MAX_BODY_SIZE.

Serialisation(SerialisationError)

Serialisation 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, formatter: &mut Formatter) -> Result

Formats the value using the given formatter.

impl StdError for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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

impl From<SerialisationError> for Error
[src]

fn from(error: SerialisationError) -> Error

Performs the conversion.