pub struct HostMapping { /* private fields */ }Expand description
One ordered service hostname-to-address mapping.
Implementations§
Source§impl HostMapping
impl HostMapping
Sourcepub const fn new(hostname: Identifier, address: HostAddress) -> Self
pub const fn new(hostname: Identifier, address: HostAddress) -> Self
Creates a service host mapping.
Sourcepub const fn hostname(&self) -> &Identifier
pub const fn hostname(&self) -> &Identifier
Returns the hostname written into the target hosts file.
Sourcepub const fn address(&self) -> &HostAddress
pub const fn address(&self) -> &HostAddress
Returns the raw-preserving address or runtime token.
Trait Implementations§
Source§impl Clone for HostMapping
impl Clone for HostMapping
Source§fn clone(&self) -> HostMapping
fn clone(&self) -> HostMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostMapping
impl Debug for HostMapping
impl Eq for HostMapping
Source§impl PartialEq for HostMapping
impl PartialEq for HostMapping
impl StructuralPartialEq for HostMapping
Auto Trait Implementations§
impl Freeze for HostMapping
impl RefUnwindSafe for HostMapping
impl Send for HostMapping
impl Sync for HostMapping
impl Unpin for HostMapping
impl UnsafeUnpin for HostMapping
impl UnwindSafe for HostMapping
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