pub struct AddressRef<'input> {
pub host: HostRef<'input>,
pub port: Option<u16>,
}Expand description
See Address for an owned variant.
Fields§
§host: HostRef<'input>§port: Option<u16>Trait Implementations§
Source§impl<'input> Clone for AddressRef<'input>
impl<'input> Clone for AddressRef<'input>
Source§fn clone(&self) -> AddressRef<'input>
fn clone(&self) -> AddressRef<'input>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'input> Debug for AddressRef<'input>
impl<'input> Debug for AddressRef<'input>
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.
Source§impl<'input> Hash for AddressRef<'input>
impl<'input> Hash for AddressRef<'input>
Source§impl<'input> PartialEq for AddressRef<'input>
impl<'input> PartialEq for AddressRef<'input>
impl<'input> Eq for AddressRef<'input>
impl<'input> StructuralPartialEq for AddressRef<'input>
Auto Trait Implementations§
impl<'input> Freeze for AddressRef<'input>
impl<'input> RefUnwindSafe for AddressRef<'input>
impl<'input> Send for AddressRef<'input>
impl<'input> Sync for AddressRef<'input>
impl<'input> Unpin for AddressRef<'input>
impl<'input> UnwindSafe for AddressRef<'input>
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