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§
Sourcefn fmt(&self, p: &mut impl Formatter) -> Result
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§
Sourcefn display_zonefile(
&self,
display_kind: DisplayKind,
) -> ZoneFileDisplay<'_, Self>
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
impl<T: ZonefileFmt> ZonefileFmt for &T
Implementors§
impl ZonefileFmt for Aaaa
impl ZonefileFmt for Timestamp
impl ZonefileFmt for A
impl ZonefileFmt for Class
impl ZonefileFmt for DigestAlgorithm
impl ZonefileFmt for Nsec3HashAlgorithm
impl ZonefileFmt for Opcode
impl ZonefileFmt for OptionCode
impl ZonefileFmt for TsigRcode
impl ZonefileFmt for Rtype
impl ZonefileFmt for SecurityAlgorithm
impl ZonefileFmt for SvcParamKey
impl ZonefileFmt for ZonemdAlgorithm
impl ZonefileFmt for ZonemdScheme
impl ZonefileFmt for Ttl
impl<N: ToName> ZonefileFmt for Dname<N>
impl<N: ToName> ZonefileFmt for Cname<N>
impl<N: ToName> ZonefileFmt for Mb<N>
impl<N: ToName> ZonefileFmt for Md<N>
impl<N: ToName> ZonefileFmt for Mf<N>
impl<N: ToName> ZonefileFmt for Mg<N>
impl<N: ToName> ZonefileFmt for Minfo<N>
impl<N: ToName> ZonefileFmt for Mr<N>
impl<N: ToName> ZonefileFmt for Mx<N>
impl<N: ToName> ZonefileFmt for Ns<N>
impl<N: ToName> ZonefileFmt for Ptr<N>
impl<N: ToName> ZonefileFmt for Soa<N>
impl<N: ToName> ZonefileFmt for Srv<N>
impl<Name, Data> ZonefileFmt for Record<Name, Data>
impl<O, N> ZonefileFmt for AllRecordData<O, N>
impl<O, N> ZonefileFmt for ZoneRecordData<O, N>
— ZonefileFmt