pub enum MdnsError {
ShortBuf,
InvalidMessage,
}Expand description
A wrapper type for the errors returned by the domain library during parsing and
constructing mDNS messages.
Variants§
Trait Implementations§
Source§impl Error for MdnsError
impl Error for MdnsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FromStrError> for MdnsError
impl From<FromStrError> for MdnsError
Source§fn from(_: FromStrError) -> Self
fn from(_: FromStrError) -> Self
Converts to this type from the input type.
Source§impl<E> From<MdnsError> for MdnsIoError<E>
impl<E> From<MdnsError> for MdnsIoError<E>
Source§impl From<ParseError> for MdnsError
impl From<ParseError> for MdnsError
Source§fn from(_: ParseError) -> Self
fn from(_: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ShortMessage> for MdnsError
impl From<ShortMessage> for MdnsError
Source§fn from(_: ShortMessage) -> Self
fn from(_: ShortMessage) -> Self
Converts to this type from the input type.
impl Copy for MdnsError
impl Eq for MdnsError
impl StructuralPartialEq for MdnsError
Auto Trait Implementations§
impl Freeze for MdnsError
impl RefUnwindSafe for MdnsError
impl Send for MdnsError
impl Sync for MdnsError
impl Unpin for MdnsError
impl UnwindSafe for MdnsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.