pub struct DomainBuilder { /* private fields */ }
Expand description
An mDNS compliant domain builder. Does not support message compression.
Implementations§
Source§impl DomainBuilder
impl DomainBuilder
Sourcepub fn from_str(domain: &str) -> Result<Self, ParseError>
pub fn from_str(domain: &str) -> Result<Self, ParseError>
Attempts to construct a domain from a string formatted according to DNS standards.
Example usage:
let domain = DomainBuilder::from_str("_fuchsia._udp.local")?;
§Errors
If the domain you supply is larger than MAX_DOMAIN_SIZE
this will
return an error. It is also an error if any individual label
(the section of string between dots) is longer than 63 bytes.
Currently, terminating a string with a dot is not supported.
Trait Implementations§
Source§impl Clone for DomainBuilder
impl Clone for DomainBuilder
Source§fn clone(&self) -> DomainBuilder
fn clone(&self) -> DomainBuilder
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 Debug for DomainBuilder
impl Debug for DomainBuilder
Source§impl PartialEq for DomainBuilder
impl PartialEq for DomainBuilder
impl StructuralPartialEq for DomainBuilder
Auto Trait Implementations§
impl Freeze for DomainBuilder
impl RefUnwindSafe for DomainBuilder
impl Send for DomainBuilder
impl Sync for DomainBuilder
impl Unpin for DomainBuilder
impl UnwindSafe for DomainBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)