Trait domain::base::opt::ComposeOptData

source ·
pub trait ComposeOptData: OptData {
    // Required methods
    fn compose_len(&self) -> u16;
    fn compose_option<Target: OctetsBuilder + ?Sized>(
        &self,
        target: &mut Target,
    ) -> Result<(), Target::AppendError>;
}
Expand description

An OPT option that can be written to wire format.

Required Methods§

source

fn compose_len(&self) -> u16

source

fn compose_option<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ComposeOptData for Expire

source§

impl ComposeOptData for TcpKeepalive

source§

impl ComposeOptData for ClientSubnet

source§

impl<Name: ToDname> ComposeOptData for Chain<Name>

source§

impl<Octs, Name> ComposeOptData for AllOptData<Octs, Name>
where Octs: AsRef<[u8]>, Name: ToDname,

source§

impl<Octs: AsRef<[u8]> + ?Sized> ComposeOptData for KeyTag<Octs>

source§

impl<Octs: AsRef<[u8]> + ?Sized> ComposeOptData for Nsid<Octs>

source§

impl<Octs: AsRef<[u8]>> ComposeOptData for ExtendedError<Octs>

source§

impl<Octs: AsRef<[u8]>> ComposeOptData for Padding<Octs>

source§

impl<Octs: AsRef<[u8]>> ComposeOptData for UnknownOptData<Octs>

source§

impl<Variant, Octs> ComposeOptData for Understood<Variant, Octs>
where Self: OptData, Octs: AsRef<[u8]> + ?Sized,