#[repr(C)]pub struct Ipv4Address {
pub addr: [u8; 4],
}Expand description
The wire type corresponding to Ipv4Address.
Fields§
§addr: [u8; 4]Trait Implementations§
Source§impl Clone for Ipv4Address
impl Clone for Ipv4Address
Source§impl Constrained for Ipv4Address
impl Constrained for Ipv4Address
Source§impl Debug for Ipv4Address
impl Debug for Ipv4Address
Source§impl<___D> Decode<___D> for Ipv4Addresswhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for Ipv4Addresswhere
___D: InternalHandleDecoder + ?Sized,
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, T0> Encode<Ipv4Address, ___E> for Ipv4Address<T0>
impl<___E, T0> Encode<Ipv4Address, ___E> for Ipv4Address<T0>
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<'a, ___E, T0> Encode<Ipv4Address, ___E> for &'a Ipv4Address<T0>
impl<'a, ___E, T0> Encode<Ipv4Address, ___E> for &'a Ipv4Address<T0>
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 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 IntoNatural for Ipv4Address
impl IntoNatural for Ipv4Address
Source§type Natural = Ipv4Address
type Natural = Ipv4Address
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for Ipv4Address
impl Wire for Ipv4Address
Source§type Narrowed<'de> = Ipv4Address
type Narrowed<'de> = Ipv4Address
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<Self>)
fn zero_padding(out_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
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> 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]