pub struct ExtendedError<Octets> { /* private fields */ }
Expand description
Extended Error data structure
Implementations§
source§impl<Octets: AsRef<[u8]>> ExtendedError<Octets>
impl<Octets: AsRef<[u8]>> ExtendedError<Octets>
Trait Implementations§
source§impl<Octets: Clone> Clone for ExtendedError<Octets>
impl<Octets: Clone> Clone for ExtendedError<Octets>
source§fn clone(&self) -> ExtendedError<Octets>
fn clone(&self) -> ExtendedError<Octets>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Octets> CodeOptData for ExtendedError<Octets>
impl<Octets> CodeOptData for ExtendedError<Octets>
source§const CODE: OptionCode = OptionCode::ExtendedError
const CODE: OptionCode = OptionCode::ExtendedError
The option code for this option.
source§impl<Octets: AsRef<[u8]>> Compose for ExtendedError<Octets>
impl<Octets: AsRef<[u8]>> Compose for ExtendedError<Octets>
source§impl<Octets: Debug> Debug for ExtendedError<Octets>
impl<Octets: Debug> Debug for ExtendedError<Octets>
source§impl<Octets> From<ExtendedError<Octets>> for AllOptData<Octets>
impl<Octets> From<ExtendedError<Octets>> for AllOptData<Octets>
source§fn from(value: ExtendedError<Octets>) -> Self
fn from(value: ExtendedError<Octets>) -> Self
Converts to this type from the input type.
source§impl<Octets> From<ExtendedErrorCode> for ExtendedError<Octets>
impl<Octets> From<ExtendedErrorCode> for ExtendedError<Octets>
source§fn from(code: ExtendedErrorCode) -> Self
fn from(code: ExtendedErrorCode) -> Self
Converts to this type from the input type.
source§impl<Octets> From<u16> for ExtendedError<Octets>
impl<Octets> From<u16> for ExtendedError<Octets>
Auto Trait Implementations§
impl<Octets> RefUnwindSafe for ExtendedError<Octets>where Octets: RefUnwindSafe,
impl<Octets> Send for ExtendedError<Octets>where Octets: Send,
impl<Octets> Sync for ExtendedError<Octets>where Octets: Sync,
impl<Octets> Unpin for ExtendedError<Octets>where Octets: Unpin,
impl<Octets> UnwindSafe for ExtendedError<Octets>where Octets: UnwindSafe,
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere Target: OctetsFrom<Source>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
source§impl<T> OptData for Twhere
T: CodeOptData + Compose,
impl<T> OptData for Twhere T: CodeOptData + Compose,
source§fn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.
source§impl<Octets, T> ParseOptData<Octets> for Twhere
Octets: AsRef<[u8]>,
T: CodeOptData + Parse<Octets> + Compose,
impl<Octets, T> ParseOptData<Octets> for Twhere Octets: AsRef<[u8]>, T: CodeOptData + Parse<Octets> + Compose,
source§fn parse_option(
code: OptionCode,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
fn parse_option( code: OptionCode, parser: &mut Parser<Octets> ) -> Result<Option<T>, ParseError>
Parses the option code data. Read more