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.