pub struct Expire(_);
Implementations§
Trait Implementations§
source§impl CodeOptData for Expire
impl CodeOptData for Expire
source§const CODE: OptionCode = OptionCode::Expire
const CODE: OptionCode = OptionCode::Expire
The option code for this option.
source§impl Compose for Expire
impl Compose for Expire
source§impl<Octets> From<Expire> for AllOptData<Octets>
impl<Octets> From<Expire> for AllOptData<Octets>
source§impl Ord for Expire
impl Ord for Expire
source§impl PartialEq<Expire> for Expire
impl PartialEq<Expire> for Expire
source§impl PartialOrd<Expire> for Expire
impl PartialOrd<Expire> for Expire
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Expire
impl Eq for Expire
impl StructuralEq for Expire
impl StructuralPartialEq for Expire
Auto Trait Implementations§
impl RefUnwindSafe for Expire
impl Send for Expire
impl Sync for Expire
impl Unpin for Expire
impl UnwindSafe for Expire
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