pub struct HostName { /* private fields */ }Expand description
Host name, limited to 255 characters.
Commonly it is valid utf-8 string, but due to potential encoding differences, it is possible
that name cannot be interpreted as utf-8 string.
In this case user is encouraged to use as_bytes method and perform conversion by himself.
§fmt
-
Debugtrait outputs byte content. -
Displaytrait outputs content as string, if possible, otherwise fallbacks to byte slice.
Implementations§
Trait Implementations§
impl Eq for HostName
Source§impl Ord for HostName
impl Ord for HostName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl Freeze for HostName
impl RefUnwindSafe for HostName
impl Send for HostName
impl Sync for HostName
impl Unpin for HostName
impl UnsafeUnpin for HostName
impl UnwindSafe for HostName
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