Cname

Struct Cname 

Source
pub struct Cname<'s, C: GenericClass = InClass> { /* private fields */ }
Expand description

View for RDATA of CNAME records. Generic across all classes.

Implementations§

Source§

impl<C: GenericClass> Cname<'_, C>

Source

pub fn name(&self) -> Name<'_>

Trait Implementations§

Source§

impl<'s, C: GenericClass> BorrowedView<'s> for Cname<'s, C>

Source§

fn source(&self) -> &'s [u8]

Source§

fn offset(&self) -> usize

Source§

fn len(&self) -> usize

Source§

fn as_bytes(&self) -> &'s [u8]

Source§

impl Format for Cname<'_>

Source§

fn fmt(&self, w: &mut Wrapper<'_, '_>) -> Result

Source§

impl<'s> From<Cname<'s>> for Rdata<'s>

Source§

fn from(inner: Cname<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s, C: GenericClass + 's> View<'s> for Cname<'s, C>

Source§

type Error = RdataError

Source§

fn view_range( source: &'s [u8], range: Range<usize>, ) -> Result<Self, Self::Error>

Source§

fn view( source: &'s [u8], range: impl RangeBounds<usize>, ) -> Result<Self, Self::Error>
where Self: Sized,

Source§

impl<'s> RdataView<'s> for Cname<'s>

Auto Trait Implementations§

§

impl<'s, C> Freeze for Cname<'s, C>

§

impl<'s, C> RefUnwindSafe for Cname<'s, C>
where C: RefUnwindSafe,

§

impl<'s, C> Send for Cname<'s, C>
where C: Send,

§

impl<'s, C> Sync for Cname<'s, C>
where C: Sync,

§

impl<'s, C> Unpin for Cname<'s, C>
where C: Unpin,

§

impl<'s, C> UnwindSafe for Cname<'s, C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.