Enum s2n_quic_core::inet::ip::IpAddressRef
source · [−]pub enum IpAddressRef<'a> {
IPv4(&'a IpV4Address),
IPv6(&'a IpV6Address),
}Variants
IPv4(&'a IpV4Address)
IPv6(&'a IpV6Address)
Implementations
sourceimpl<'a> IpAddressRef<'a>
impl<'a> IpAddressRef<'a>
Trait Implementations
sourceimpl<'a> Clone for IpAddressRef<'a>
impl<'a> Clone for IpAddressRef<'a>
sourcefn clone(&self) -> IpAddressRef<'a>
fn clone(&self) -> IpAddressRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for IpAddressRef<'a>
impl<'a> Debug for IpAddressRef<'a>
sourceimpl<'a> From<&'a IpV4Address> for IpAddressRef<'a>
impl<'a> From<&'a IpV4Address> for IpAddressRef<'a>
sourcefn from(ip: &'a IpV4Address) -> Self
fn from(ip: &'a IpV4Address) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a IpV6Address> for IpAddressRef<'a>
impl<'a> From<&'a IpV6Address> for IpAddressRef<'a>
sourcefn from(ip: &'a IpV6Address) -> Self
fn from(ip: &'a IpV6Address) -> Self
Converts to this type from the input type.
sourceimpl<'a> Hash for IpAddressRef<'a>
impl<'a> Hash for IpAddressRef<'a>
sourceimpl<'a> Ord for IpAddressRef<'a>
impl<'a> Ord for IpAddressRef<'a>
sourceimpl<'a> PartialEq<IpAddressRef<'a>> for IpAddressRef<'a>
impl<'a> PartialEq<IpAddressRef<'a>> for IpAddressRef<'a>
sourcefn eq(&self, other: &IpAddressRef<'a>) -> bool
fn eq(&self, other: &IpAddressRef<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &IpAddressRef<'a>) -> bool
fn ne(&self, other: &IpAddressRef<'a>) -> bool
This method tests for !=.
sourceimpl<'a> PartialOrd<IpAddressRef<'a>> for IpAddressRef<'a>
impl<'a> PartialOrd<IpAddressRef<'a>> for IpAddressRef<'a>
sourcefn partial_cmp(&self, other: &IpAddressRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &IpAddressRef<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<'a> Copy for IpAddressRef<'a>
impl<'a> Eq for IpAddressRef<'a>
impl<'a> StructuralEq for IpAddressRef<'a>
impl<'a> StructuralPartialEq for IpAddressRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for IpAddressRef<'a>
impl<'a> Send for IpAddressRef<'a>
impl<'a> Sync for IpAddressRef<'a>
impl<'a> Unpin for IpAddressRef<'a>
impl<'a> UnwindSafe for IpAddressRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more