pub struct HostAddress { /* private fields */ }Expand description
One raw-preserving address or runtime token used by a service host mapping.
Implementations§
Source§impl HostAddress
impl HostAddress
Sourcepub fn new(raw: impl Into<String>) -> Result<Self, ModelError>
pub fn new(raw: impl Into<String>) -> Result<Self, ModelError>
Classifies an authored host-mapping address without normalizing it.
§Errors
Returns ModelError::EmptyValue or ModelError::ContainsNul.
Sourcepub fn raw(&self) -> &str
pub fn raw(&self) -> &str
Returns the address or runtime token exactly as supplied by the source adapter.
Sourcepub const fn kind(&self) -> HostAddressKind
pub const fn kind(&self) -> HostAddressKind
Returns the conservative lexical classification.
Trait Implementations§
Source§impl Clone for HostAddress
impl Clone for HostAddress
Source§fn clone(&self) -> HostAddress
fn clone(&self) -> HostAddress
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 HostAddress
impl Debug for HostAddress
impl Eq for HostAddress
Source§impl PartialEq for HostAddress
impl PartialEq for HostAddress
impl StructuralPartialEq for HostAddress
Auto Trait Implementations§
impl Freeze for HostAddress
impl RefUnwindSafe for HostAddress
impl Send for HostAddress
impl Sync for HostAddress
impl Unpin for HostAddress
impl UnsafeUnpin for HostAddress
impl UnwindSafe for HostAddress
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