Enum ssdp::SSDPError [] [src]

pub enum SSDPError {
    InvalidHttp(Vec<u8>),
    InvalidHttpVersion,
    ResponseCode(u16),
    InvalidMethod(String),
    InvalidUri(String),
    MissingHeader(&'static str),
    InvalidHeader(&'static str, &'static str),
    Other(Box<Error>),
}

Enumerates all errors that can occur when dealing with an SSDP message.

Variants

InvalidHttp(Vec<u8>)

Message is not valid HTTP.

Message is supplied as a list of bytes.

InvalidHttpVersion

Message did not specify HTTP/1.1 as version.

ResponseCode(u16)

Message consists of an error code.

Error code is supplied.

InvalidMethod(String)

Method supplied is not a valid SSDP method.

Method received is supplied.

InvalidUri(String)

Uri supplied is not a valid SSDP uri.

URI received is supplied.

MissingHeader(&'static str)

Header is missing from the message.

Expected header is supplied.

InvalidHeader(&'static str, &'static str)

Header has an invalid value.

Header name with error message are supplied.

Other(Box<Error>)

Some other error occurred.

Trait Implementations

impl Debug for SSDPError
[src]

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

Formats the value using the given formatter.

impl Display for SSDPError
[src]

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

Formats the value using the given formatter.

impl<T> From<T> for SSDPError where T: Error + 'static
[src]

fn from(err: T) -> SSDPError

Performs the conversion.