domain::base::opt

Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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,