#[repr(C)]pub struct Ipv4SocketAddress {
pub address: Ipv4Address,
pub port: Uint16,
}Expand description
The wire type corresponding to Ipv4SocketAddress.
Fields§
§address: Ipv4Address§port: Uint16Trait Implementations§
Source§impl Clone for Ipv4SocketAddress
impl Clone for Ipv4SocketAddress
Source§impl Constrained for Ipv4SocketAddress
impl Constrained for Ipv4SocketAddress
Source§impl Debug for Ipv4SocketAddress
impl Debug for Ipv4SocketAddress
Source§impl<___D> Decode<___D> for Ipv4SocketAddresswhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for Ipv4SocketAddresswhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<___E> Encode<Ipv4SocketAddress, ___E> for Ipv4SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Ipv4SocketAddress, ___E> for Ipv4SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, Ipv4SocketAddress>
const COPY_OPTIMIZATION: CopyOptimization<Self, Ipv4SocketAddress>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv4SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv4SocketAddress>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<'a, ___E> Encode<Ipv4SocketAddress, ___E> for &'a Ipv4SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Ipv4SocketAddress, ___E> for &'a Ipv4SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv4SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv4SocketAddress>, _: (), ) -> 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, T1> Encode<Ipv4SocketAddress, ___E> for Ipv4SocketAddress<T0, T1>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Ipv4Address, ___E>,
T1: Encode<Uint16, ___E>,
impl<___E, T0, T1> Encode<Ipv4SocketAddress, ___E> for Ipv4SocketAddress<T0, T1>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Ipv4Address, ___E>,
T1: Encode<Uint16, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv4SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv4SocketAddress>, _: (), ) -> 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, T1> Encode<Ipv4SocketAddress, ___E> for &'a Ipv4SocketAddress<T0, T1>where
___E: InternalHandleEncoder + ?Sized,
&'a T0: Encode<Ipv4Address, ___E>,
&'a T1: Encode<Uint16, ___E>,
impl<'a, ___E, T0, T1> Encode<Ipv4SocketAddress, ___E> for &'a Ipv4SocketAddress<T0, T1>where
___E: InternalHandleEncoder + ?Sized,
&'a T0: Encode<Ipv4Address, ___E>,
&'a T1: Encode<Uint16, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv4SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv4SocketAddress>, _: (), ) -> 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<Ipv4SocketAddress> for Ipv4SocketAddress
impl FromWire<Ipv4SocketAddress> for Ipv4SocketAddress
Source§const COPY_OPTIMIZATION: CopyOptimization<Ipv4SocketAddress, Self>
const COPY_OPTIMIZATION: CopyOptimization<Ipv4SocketAddress, Self>
Source§fn from_wire(wire: Ipv4SocketAddress) -> Self
fn from_wire(wire: Ipv4SocketAddress) -> Self
Converts the given owned value to this type.
Source§impl FromWireRef<Ipv4SocketAddress> for Ipv4SocketAddress
impl FromWireRef<Ipv4SocketAddress> for Ipv4SocketAddress
Source§fn from_wire_ref(wire: &Ipv4SocketAddress) -> Self
fn from_wire_ref(wire: &Ipv4SocketAddress) -> Self
Converts the given reference to this type.
Source§impl IntoNatural for Ipv4SocketAddress
impl IntoNatural for Ipv4SocketAddress
Source§type Natural = Ipv4SocketAddress
type Natural = Ipv4SocketAddress
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 Ipv4SocketAddress
impl Wire for Ipv4SocketAddress
Source§type Narrowed<'de> = Ipv4SocketAddress
type Narrowed<'de> = Ipv4SocketAddress
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 Ipv4SocketAddress
impl RefUnwindSafe for Ipv4SocketAddress
impl Send for Ipv4SocketAddress
impl Sync for Ipv4SocketAddress
impl Unpin for Ipv4SocketAddress
impl UnsafeUnpin for Ipv4SocketAddress
impl UnwindSafe for Ipv4SocketAddress
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]