Struct domain::bits::name::DNameBuildInto [−][src]
A type for iteratively pushing a domain name into a bytes vec.
Methods
impl<'a, V: AsMut<Vec<u8>>> DNameBuildInto<'a, V>
[src]
impl<'a, V: AsMut<Vec<u8>>> DNameBuildInto<'a, V>
pub fn new(target: V, origin: Option<&'a DNameSlice>) -> Self
[src]
pub fn new(target: V, origin: Option<&'a DNameSlice>) -> Self
Creates a new domain name builder.
The domain name will be appended to the end of target
.
If origin
is given, it will be appened to the resulting domain
name if it is relative.
pub fn push(&mut self, b: u8) -> Result<(), FromStrError>
[src]
pub fn push(&mut self, b: u8) -> Result<(), FromStrError>
Appends an octet to the end of the domain name.
pub fn end_label(&mut self)
[src]
pub fn end_label(&mut self)
Ends a label.
pub fn done(self) -> Result<V, FromStrError>
[src]
pub fn done(self) -> Result<V, FromStrError>
Finishes building the name and extracts the target.
Trait Implementations
impl<'a, V: Clone + AsMut<Vec<u8>>> Clone for DNameBuildInto<'a, V>
[src]
impl<'a, V: Clone + AsMut<Vec<u8>>> Clone for DNameBuildInto<'a, V>
fn clone(&self) -> DNameBuildInto<'a, V>
[src]
fn clone(&self) -> DNameBuildInto<'a, V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a, V: Debug + AsMut<Vec<u8>>> Debug for DNameBuildInto<'a, V>
[src]
impl<'a, V: Debug + AsMut<Vec<u8>>> Debug for DNameBuildInto<'a, V>
Auto Trait Implementations
impl<'a, V> Send for DNameBuildInto<'a, V> where
V: Send,
impl<'a, V> Send for DNameBuildInto<'a, V> where
V: Send,
impl<'a, V> Sync for DNameBuildInto<'a, V> where
V: Sync,
impl<'a, V> Sync for DNameBuildInto<'a, V> where
V: Sync,