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
-
Debug
trait outputs byte content. -
Display
trait outputs content as string, if possible, otherwise fallbacks to byte slice.
Implementations§
Trait Implementations§
Source§impl Ord for HostName
impl Ord for HostName
Source§impl PartialOrd for HostName
impl PartialOrd for HostName
impl Eq for HostName
Auto Trait Implementations§
impl Freeze for HostName
impl RefUnwindSafe for HostName
impl Send for HostName
impl Sync for HostName
impl Unpin 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