pub enum IpAddress {
Ipv4(Ipv4Address),
Ipv6(Ipv6Address),
}Expand description
Represents an IP address that may be either v4 or v6.
Variants§
Ipv4(Ipv4Address)
Ipv6(Ipv6Address)
Trait Implementations§
impl Copy for IpAddress
Source§impl<___E> Encode<IpAddress<'static>, ___E> for IpAddresswhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<IpAddress<'static>, ___E> for IpAddresswhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<'a, ___E> Encode<IpAddress<'static>, ___E> for &'a IpAddresswhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<'a, ___E> Encode<IpAddress<'static>, ___E> for &'a IpAddresswhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<IpAddress<'static>, ___E> for IpAddress
impl<___E> EncodeOption<IpAddress<'static>, ___E> for IpAddress
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<IpAddress<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<IpAddress<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<IpAddress<'static>, ___E> for &'a IpAddress
impl<'a, ___E> EncodeOption<IpAddress<'static>, ___E> for &'a IpAddress
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<IpAddress<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<IpAddress<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for IpAddress
Source§impl<'de> FromWireOption<IpAddress<'de>> for IpAddress
impl<'de> FromWireOption<IpAddress<'de>> for IpAddress
Source§fn from_wire_option(wire: IpAddress<'de>) -> Option<Self>
fn from_wire_option(wire: IpAddress<'de>) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl<'de> FromWireOption<IpAddress<'de>> for Box<IpAddress>
impl<'de> FromWireOption<IpAddress<'de>> for Box<IpAddress>
Source§fn from_wire_option(wire: IpAddress<'de>) -> Option<Self>
fn from_wire_option(wire: IpAddress<'de>) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl<'de> FromWireOptionRef<IpAddress<'de>> for Box<IpAddress>
impl<'de> FromWireOptionRef<IpAddress<'de>> for Box<IpAddress>
Source§fn from_wire_option_ref(wire: &IpAddress<'de>) -> Option<Self>
fn from_wire_option_ref(wire: &IpAddress<'de>) -> Option<Self>
Converts the given reference to an option of this type.
Source§impl<'de> FromWireRef<IpAddress<'de>> for IpAddress
impl<'de> FromWireRef<IpAddress<'de>> for IpAddress
Source§fn from_wire_ref(wire: &IpAddress<'de>) -> Self
fn from_wire_ref(wire: &IpAddress<'de>) -> Self
Converts the given reference to this type.
Source§impl Ord for IpAddress
impl Ord for IpAddress
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for IpAddress
impl PartialOrd for IpAddress
impl StructuralPartialEq for IpAddress
Auto Trait Implementations§
impl Freeze for IpAddress
impl RefUnwindSafe for IpAddress
impl Send for IpAddress
impl Sync for IpAddress
impl Unpin for IpAddress
impl UnsafeUnpin for IpAddress
impl UnwindSafe for IpAddress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]