pub enum NameElement<'a> {
Label(Label<'a>),
Pointer(u16),
Root,
Reserved,
}Expand description
A single element in a domain name: label, pointer, root, or reserved.
Variants§
Trait Implementations§
Source§impl<'a> Clone for NameElement<'a>
impl<'a> Clone for NameElement<'a>
Source§fn clone(&self) -> NameElement<'a>
fn clone(&self) -> NameElement<'a>
Returns a duplicate 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<'a> Debug for NameElement<'a>
impl<'a> Debug for NameElement<'a>
Source§impl<'a> PartialEq for NameElement<'a>
impl<'a> PartialEq for NameElement<'a>
Source§impl<'a> WireLength<usize> for NameElement<'a>
impl<'a> WireLength<usize> for NameElement<'a>
Source§fn wire_length(&self) -> usize
fn wire_length(&self) -> usize
Returns the length of this value in bytes when encoded in wire format.
impl<'a> Eq for NameElement<'a>
impl<'a> StructuralPartialEq for NameElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for NameElement<'a>
impl<'a> RefUnwindSafe for NameElement<'a>
impl<'a> Send for NameElement<'a>
impl<'a> Sync for NameElement<'a>
impl<'a> Unpin for NameElement<'a>
impl<'a> UnsafeUnpin for NameElement<'a>
impl<'a> UnwindSafe for NameElement<'a>
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