pub struct Address {
pub host: Host,
pub port: Option<u16>,
}Expand description
Owned variant of AddressRef
Fields§
§host: Host§port: Option<u16>Trait Implementations§
Source§impl From<&AddressRef<'_>> for Address
impl From<&AddressRef<'_>> for Address
Source§fn from(r: &AddressRef<'_>) -> Self
fn from(r: &AddressRef<'_>) -> Self
Converts to this type from the input type.
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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