[−]Enum ssdp::SSDPErrorKind
The kind of an error.
Variants
Msg(String)A convenient variant for String.
Io(Error)AddrParseError(AddrParseError)Hyper(Error)HyperParseError(ParseError)InvalidHttp(Vec<u8>)Message is not valid HTTP.
Message is supplied as a list of bytes.
InvalidHttpVersionMessage 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.
Methods
impl SSDPErrorKind
impl SSDPErrorKindpub fn description(&self) -> &str
pub fn description(&self) -> &strA string describing the error kind.
Trait Implementations
impl From<SSDPErrorKind> for SSDPError
impl From<SSDPErrorKind> for SSDPErrorfn from(e: SSDPErrorKind) -> Self
fn from(e: SSDPErrorKind) -> SelfPerforms the conversion.
impl<'a> From<&'a str> for SSDPErrorKind
impl<'a> From<&'a str> for SSDPErrorKindimpl From<String> for SSDPErrorKind
impl From<String> for SSDPErrorKindimpl From<SSDPError> for SSDPErrorKind
impl From<SSDPError> for SSDPErrorKindimpl Debug for SSDPErrorKind
impl Debug for SSDPErrorKindimpl Display for SSDPErrorKind
impl Display for SSDPErrorKindAuto Trait Implementations
impl Send for SSDPErrorKind
impl Send for SSDPErrorKindimpl Sync for SSDPErrorKind
impl Sync for SSDPErrorKindBlanket Implementations
impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Typeable for T where
T: Any, [src]
impl<T> Typeable for T where
T: Any,