pub struct Txt<'container, 'innards> { /* private fields */ }Expand description
3.3.14. TXT RDATA format
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ TXT-DATA /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
where:
TXT-DATA One or more <character-string>s.
TXT RRs are used to hold descriptive text. The semantics of the text
depends on the domain where it is found.Implementations§
Source§impl<'container, 'innards> Txt<'container, 'innards>
impl<'container, 'innards> Txt<'container, 'innards>
Sourcepub const fn from_strings(strings: &'container [&'innards str]) -> Self
pub const fn from_strings(strings: &'container [&'innards str]) -> Self
Creates a new Txt record from a slice of string references
Sourcepub const fn from_bytes(src: &'innards [u8]) -> Self
pub const fn from_bytes(src: &'innards [u8]) -> Self
Creates a new Txt record from a slice
Trait Implementations§
impl<'container, 'innards> Copy for Txt<'container, 'innards>
Auto Trait Implementations§
impl<'container, 'innards> Freeze for Txt<'container, 'innards>
impl<'container, 'innards> RefUnwindSafe for Txt<'container, 'innards>
impl<'container, 'innards> Send for Txt<'container, 'innards>
impl<'container, 'innards> Sync for Txt<'container, 'innards>
impl<'container, 'innards> Unpin for Txt<'container, 'innards>
impl<'container, 'innards> UnwindSafe for Txt<'container, 'innards>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more