Trait ZonefileFmt

Source
pub trait ZonefileFmt {
    // Required method
    fn fmt(&self, p: &mut impl Formatter) -> Result;

    // Provided method
    fn display_zonefile(
        &self,
        display_kind: DisplayKind,
    ) -> ZoneFileDisplay<'_, Self> { ... }
}
Expand description

Show a value as zonefile format

Required Methods§

Source

fn fmt(&self, p: &mut impl Formatter) -> Result

Format the item as zonefile fmt into a fmt::Formatter

This method is meant for use in a fmt::Display implementation.

Provided Methods§

Source

fn display_zonefile( &self, display_kind: DisplayKind, ) -> ZoneFileDisplay<'_, Self>

Display the item as a zonefile

The returned object will be displayed as zonefile when printed or written using fmt::Display.

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.

Implementations on Foreign Types§

Source§

impl<T: ZonefileFmt> ZonefileFmt for &T

Source§

fn fmt(&self, p: &mut impl Formatter) -> Result

Implementors§

Source§

impl ZonefileFmt for Aaaa

Source§

impl ZonefileFmt for Timestamp

Source§

impl ZonefileFmt for A

Source§

impl ZonefileFmt for Class

Source§

impl ZonefileFmt for DigestAlgorithm

Source§

impl ZonefileFmt for Nsec3HashAlgorithm

Source§

impl ZonefileFmt for Opcode

Source§

impl ZonefileFmt for OptionCode

Source§

impl ZonefileFmt for TsigRcode

Source§

impl ZonefileFmt for Rtype

Source§

impl ZonefileFmt for SecurityAlgorithm

Source§

impl ZonefileFmt for SvcParamKey

Source§

impl ZonefileFmt for ZonemdAlgorithm

Source§

impl ZonefileFmt for ZonemdScheme

Source§

impl ZonefileFmt for Ttl

Source§

impl<N: ToName> ZonefileFmt for Dname<N>

Source§

impl<N: ToName> ZonefileFmt for Cname<N>

Source§

impl<N: ToName> ZonefileFmt for Mb<N>

Source§

impl<N: ToName> ZonefileFmt for Md<N>

Source§

impl<N: ToName> ZonefileFmt for Mf<N>

Source§

impl<N: ToName> ZonefileFmt for Mg<N>

Source§

impl<N: ToName> ZonefileFmt for Minfo<N>

Source§

impl<N: ToName> ZonefileFmt for Mr<N>

Source§

impl<N: ToName> ZonefileFmt for Mx<N>

Source§

impl<N: ToName> ZonefileFmt for Ns<N>

Source§

impl<N: ToName> ZonefileFmt for Ptr<N>

Source§

impl<N: ToName> ZonefileFmt for Soa<N>

Source§

impl<N: ToName> ZonefileFmt for Srv<N>

Source§

impl<Name, Data> ZonefileFmt for Record<Name, Data>
where Name: ToName, Data: RecordData + ZonefileFmt,

Source§

impl<O, N> ZonefileFmt for AllRecordData<O, N>
where O: Octets, N: ToName,

Source§

impl<O, N> ZonefileFmt for ZoneRecordData<O, N>
where O: AsRef<[u8]>, N: ToName,

— ZonefileFmt

Source§

impl<O: AsRef<[u8]>, N: ToName> ZonefileFmt for Tsig<O, N>

Source§

impl<Octs> ZonefileFmt for Nsec3<Octs>
where Octs: AsRef<[u8]>,

Source§

impl<Octs> ZonefileFmt for Txt<Octs>
where Octs: AsRef<[u8]>,

Source§

impl<Octs, Name> ZonefileFmt for Nsec<Octs, Name>
where Octs: AsRef<[u8]>, Name: ToName,

Source§

impl<Octs, Name> ZonefileFmt for Rrsig<Octs, Name>
where Octs: AsRef<[u8]>, Name: ToName,

Source§

impl<Octs, Name> ZonefileFmt for Naptr<Octs, Name>
where Octs: AsRef<[u8]>, Name: ToName,

Source§

impl<Octs: Octets + ?Sized> ZonefileFmt for SvcParams<Octs>

Source§

impl<Octs: AsRef<[u8]> + ?Sized> ZonefileFmt for Nsec3Salt<Octs>

Source§

impl<Octs: AsRef<[u8]> + ?Sized> ZonefileFmt for Opt<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Cdnskey<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Cds<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Dnskey<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Ds<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for RtypeBitmap<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Nsec3param<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Hinfo<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Null<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for Zonemd<Octs>

Source§

impl<Octs: AsRef<[u8]>> ZonefileFmt for UnknownRecordData<Octs>

Source§

impl<Variant, Octs, Name> ZonefileFmt for SvcbRdata<Variant, Octs, Name>
where Octs: Octets, Name: ToName,