#[repr(C)]pub struct Ipv6SocketAddress {
pub address: Ipv6Address,
pub port: Uint16,
pub zone_index: Uint64,
}Expand description
The wire type corresponding to Ipv6SocketAddress.
Fields§
§address: Ipv6Address§port: Uint16§zone_index: Uint64Trait Implementations§
Source§impl Clone for Ipv6SocketAddress
impl Clone for Ipv6SocketAddress
Source§fn clone(&self) -> Ipv6SocketAddress
fn clone(&self) -> Ipv6SocketAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Constrained for Ipv6SocketAddress
impl Constrained for Ipv6SocketAddress
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Ipv6SocketAddress>,
_: <Ipv6SocketAddress as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Ipv6SocketAddress>, _: <Ipv6SocketAddress as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for Ipv6SocketAddress
impl Debug for Ipv6SocketAddress
Source§impl<___D> Decode<___D> for Ipv6SocketAddresswhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for Ipv6SocketAddresswhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<___E> Encode<Ipv6SocketAddress, ___E> for Ipv6SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Ipv6SocketAddress, ___E> for Ipv6SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv6SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv6SocketAddress>, _: (), ) -> 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> Encode<Ipv6SocketAddress, ___E> for &'a Ipv6SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Ipv6SocketAddress, ___E> for &'a Ipv6SocketAddresswhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv6SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv6SocketAddress>, _: (), ) -> 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, T2> Encode<Ipv6SocketAddress, ___E> for Ipv6SocketAddress<T0, T1, T2>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Ipv6Address, ___E>,
T1: Encode<Uint16, ___E>,
T2: Encode<Uint64, ___E>,
impl<___E, T0, T1, T2> Encode<Ipv6SocketAddress, ___E> for Ipv6SocketAddress<T0, T1, T2>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Ipv6Address, ___E>,
T1: Encode<Uint16, ___E>,
T2: Encode<Uint64, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv6SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv6SocketAddress>, _: (), ) -> 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, T2> Encode<Ipv6SocketAddress, ___E> for &'a Ipv6SocketAddress<T0, T1, T2>where
___E: InternalHandleEncoder + ?Sized,
&'a T0: Encode<Ipv6Address, ___E>,
&'a T1: Encode<Uint16, ___E>,
&'a T2: Encode<Uint64, ___E>,
impl<'a, ___E, T0, T1, T2> Encode<Ipv6SocketAddress, ___E> for &'a Ipv6SocketAddress<T0, T1, T2>where
___E: InternalHandleEncoder + ?Sized,
&'a T0: Encode<Ipv6Address, ___E>,
&'a T1: Encode<Uint16, ___E>,
&'a T2: Encode<Uint64, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<Ipv6SocketAddress>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<Ipv6SocketAddress>, _: (), ) -> 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<Ipv6SocketAddress> for Ipv6SocketAddress
impl FromWire<Ipv6SocketAddress> for Ipv6SocketAddress
Source§fn from_wire(wire: Ipv6SocketAddress) -> Ipv6SocketAddress
fn from_wire(wire: Ipv6SocketAddress) -> Ipv6SocketAddress
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<Ipv6SocketAddress> for Ipv6SocketAddress
impl FromWireRef<Ipv6SocketAddress> for Ipv6SocketAddress
Source§fn from_wire_ref(wire: &Ipv6SocketAddress) -> Ipv6SocketAddress
fn from_wire_ref(wire: &Ipv6SocketAddress) -> Ipv6SocketAddress
Converts the given reference to this type.
Source§impl IntoNatural for Ipv6SocketAddress
impl IntoNatural for Ipv6SocketAddress
Source§type Natural = Ipv6SocketAddress
type Natural = Ipv6SocketAddress
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 Ipv6SocketAddress
impl Wire for Ipv6SocketAddress
Source§type Narrowed<'de> = Ipv6SocketAddress
type Narrowed<'de> = Ipv6SocketAddress
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<Ipv6SocketAddress>)
fn zero_padding(out_: &mut MaybeUninit<Ipv6SocketAddress>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for Ipv6SocketAddress
impl RefUnwindSafe for Ipv6SocketAddress
impl Send for Ipv6SocketAddress
impl Sync for Ipv6SocketAddress
impl Unpin for Ipv6SocketAddress
impl UnsafeUnpin for Ipv6SocketAddress
impl UnwindSafe for Ipv6SocketAddress
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]