#[repr(C)]pub struct Ipv4Address {
pub addr: [u8; 4],
}Expand description
Ipv4Address is expressed in network byte order, so the most significant byte (“127” in the address “127.0.0.1”) will be at index 0.
Fields§
§addr: [u8; 4]Trait Implementations§
Source§impl Clone for Ipv4Address
impl Clone for Ipv4Address
impl Copy for Ipv4Address
Source§impl Debug for Ipv4Address
impl Debug for Ipv4Address
Source§impl<___E> Encode<Ipv4Address, ___E> for Ipv4Addresswhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Ipv4Address, ___E> for Ipv4Addresswhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, Ipv4Address>
const COPY_OPTIMIZATION: CopyOptimization<Self, Ipv4Address>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv4Address>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv4Address>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<'a, ___E> Encode<Ipv4Address, ___E> for &'a Ipv4Addresswhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Ipv4Address, ___E> for &'a Ipv4Addresswhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv4Address>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv4Address>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<Box<'static, Ipv4Address>, ___E> for Ipv4Address
impl<___E> EncodeOption<Box<'static, Ipv4Address>, ___E> for Ipv4Address
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Ipv4Address>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Ipv4Address>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<Box<'static, Ipv4Address>, ___E> for &'a Ipv4Address
impl<'a, ___E> EncodeOption<Box<'static, Ipv4Address>, ___E> for &'a Ipv4Address
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Ipv4Address>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Ipv4Address>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for Ipv4Address
Source§impl FromWire<Ipv4Address> for Ipv4Address
impl FromWire<Ipv4Address> for Ipv4Address
Source§const COPY_OPTIMIZATION: CopyOptimization<Ipv4Address, Self>
const COPY_OPTIMIZATION: CopyOptimization<Ipv4Address, Self>
Source§fn from_wire(wire: Ipv4Address) -> Self
fn from_wire(wire: Ipv4Address) -> Self
Converts the given owned value to this type.
Source§impl FromWireRef<Ipv4Address> for Ipv4Address
impl FromWireRef<Ipv4Address> for Ipv4Address
Source§fn from_wire_ref(wire: &Ipv4Address) -> Self
fn from_wire_ref(wire: &Ipv4Address) -> Self
Converts the given reference to this type.
Source§impl Hash for Ipv4Address
impl Hash for Ipv4Address
Source§impl Ord for Ipv4Address
impl Ord for Ipv4Address
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 PartialEq for Ipv4Address
impl PartialEq for Ipv4Address
Source§impl PartialOrd for Ipv4Address
impl PartialOrd for Ipv4Address
impl StructuralPartialEq for Ipv4Address
Auto Trait Implementations§
impl Freeze for Ipv4Address
impl RefUnwindSafe for Ipv4Address
impl Send for Ipv4Address
impl Sync for Ipv4Address
impl Unpin for Ipv4Address
impl UnsafeUnpin for Ipv4Address
impl UnwindSafe for Ipv4Address
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]