Struct domain::sign::records::FamilyName
source · pub struct FamilyName<N> { /* private fields */ }
Available on crate feature
sign
only.Expand description
The identifier for a family, i.e., a owner name and class.
Implementations§
source§impl<N> FamilyName<N>
impl<N> FamilyName<N>
pub fn owner(&self) -> &N
pub fn class(&self) -> Class
pub fn into_record<D>(self, ttl: Ttl, data: D) -> Record<N, D>where
N: Clone,
pub fn dnskey<K: SigningKey, Octets: From<K::Octets>>(
&self,
ttl: Ttl,
key: K
) -> Result<Record<N, Dnskey<Octets>>, K::Error>where
N: Clone,
pub fn ds<K: SigningKey>( &self, ttl: Ttl, key: K ) -> Result<Record<N, Ds<K::Octets>>, K::Error>
source§impl<'a, N: Clone> FamilyName<&'a N>
impl<'a, N: Clone> FamilyName<&'a N>
pub fn cloned(&self) -> FamilyName<N>
Trait Implementations§
source§impl<N: Clone> Clone for FamilyName<N>
impl<N: Clone> Clone for FamilyName<N>
source§fn clone(&self) -> FamilyName<N>
fn clone(&self) -> FamilyName<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: ToName, NN: ToName> PartialEq<FamilyName<NN>> for FamilyName<N>
impl<N: ToName, NN: ToName> PartialEq<FamilyName<NN>> for FamilyName<N>
source§fn eq(&self, other: &FamilyName<NN>) -> bool
fn eq(&self, other: &FamilyName<NN>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl<N> Freeze for FamilyName<N>where
N: Freeze,
impl<N> RefUnwindSafe for FamilyName<N>where
N: RefUnwindSafe,
impl<N> Send for FamilyName<N>where
N: Send,
impl<N> Sync for FamilyName<N>where
N: Sync,
impl<N> Unpin for FamilyName<N>where
N: Unpin,
impl<N> UnwindSafe for FamilyName<N>where
N: UnwindSafe,
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> 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.