pub struct IpSocketStateSpecific<I: Ip> {
pub src_addr: Option<I::Addr>,
pub dst_addr: Option<I::Addr>,
pub cookie: u64,
pub marks: Marks,
pub transport: IpSocketTransportState,
}Expand description
Lowest-level socket state information that ensures all fields are for the same IP version.
Fields§
§src_addr: Option<I::Addr>The source address of the socket.
dst_addr: Option<I::Addr>The destination address of the socket.
The cookie of the socket.
marks: MarksThe marks of the socket.
transport: IpSocketTransportStateThe transport state of the socket.
Trait Implementations§
Source§impl<I: Clone + Ip> Clone for IpSocketStateSpecific<I>
impl<I: Clone + Ip> Clone for IpSocketStateSpecific<I>
Source§fn clone(&self) -> IpSocketStateSpecific<I>
fn clone(&self) -> IpSocketStateSpecific<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Ip> From<IpSocketStateSpecific<I>> for IpSocketState
impl<I: Ip> From<IpSocketStateSpecific<I>> for IpSocketState
Source§fn from(value: IpSocketStateSpecific<I>) -> Self
fn from(value: IpSocketStateSpecific<I>) -> Self
Converts to this type from the input type.
Source§impl<I: Ip, IpType> GenericOverIp<IpType> for IpSocketStateSpecific<I>where
IpType: Ip,
impl<I: Ip, IpType> GenericOverIp<IpType> for IpSocketStateSpecific<I>where
IpType: Ip,
Source§type Type = IpSocketStateSpecific<IpType>
type Type = IpSocketStateSpecific<IpType>
The type of
Self when its IP-generic parameter is replaced with the
type NewIp.impl<I: Eq + Ip> Eq for IpSocketStateSpecific<I>
impl<I: Ip> StructuralPartialEq for IpSocketStateSpecific<I>
Auto Trait Implementations§
impl<I> Freeze for IpSocketStateSpecific<I>
impl<I> RefUnwindSafe for IpSocketStateSpecific<I>
impl<I> Send for IpSocketStateSpecific<I>
impl<I> Sync for IpSocketStateSpecific<I>
impl<I> Unpin for IpSocketStateSpecific<I>
impl<I> UnsafeUnpin for IpSocketStateSpecific<I>
impl<I> UnwindSafe for IpSocketStateSpecific<I>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.