pub struct Expire(/* private fields */);
Expand description
Option data for the Expire EDNS option.
The option’s data consists of an optional u32
. The value is omitted if
the option is added to a query to request it being included by the server
in an answer. In this answer the value should be present and indicates the
expire time of the zone on the server.
See RFC 7314 for details.
Implementations§
Trait Implementations§
source§impl ComposeOptData for Expire
impl ComposeOptData for Expire
fn compose_len(&self) -> u16
fn compose_option<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
source§impl<Octs, Name> From<Expire> for AllOptData<Octs, Name>
impl<Octs, Name> From<Expire> for AllOptData<Octs, Name>
source§impl OptData for Expire
impl OptData for Expire
source§fn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.
source§impl Ord for Expire
impl Ord for Expire
source§impl<'a, Octs: AsRef<[u8]>> ParseOptData<'a, Octs> for Expire
impl<'a, Octs: AsRef<[u8]>> ParseOptData<'a, Octs> for Expire
source§fn parse_option(
code: OptionCode,
parser: &mut Parser<'a, Octs>,
) -> Result<Option<Self>, ParseError>
fn parse_option( code: OptionCode, parser: &mut Parser<'a, Octs>, ) -> Result<Option<Self>, ParseError>
Parses the option code data. Read more
source§impl PartialOrd for Expire
impl PartialOrd for Expire
impl Copy for Expire
impl Eq for Expire
impl StructuralPartialEq for Expire
Auto Trait Implementations§
impl Freeze for Expire
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.