pub struct IpSocketState {
pub family: Option<IpVersion>,
pub src_addr: Option<IpAddress>,
pub dst_addr: Option<IpAddress>,
pub cookie: Option<u64>,
pub marks: Option<Marks>,
pub transport: Option<IpSocketTransportState>,
/* private fields */
}
Expand description
The state for each individual socket returned from IpIterator.Next()
.
Fields§
§family: Option<IpVersion>
The address family of the socket’s addresses. This, src_addr
, and
dst_addr
are guaranteed to be the same address family.
Required.
src_addr: Option<IpAddress>
The source address of the socket.
Required.
dst_addr: Option<IpAddress>
The destination address of the socket.
Present if the socket is connected.
The cookie of the socket, which is unique during this boot. May be used in subsequent requests in addition to the tuple to identify this particular socket, even if the tuple is reused.
Required.
marks: Option<Marks>
All of the marks on the socket.
Required.
transport: Option<IpSocketTransportState>
Transport protocol-level information about the socket.
Required.
Trait Implementations§
Source§impl Clone for IpSocketState
impl Clone for IpSocketState
Source§fn clone(&self) -> IpSocketState
fn clone(&self) -> IpSocketState
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 Debug for IpSocketState
impl Debug for IpSocketState
Source§impl<D: ResourceDialect> Decode<IpSocketState, D> for IpSocketState
impl<D: ResourceDialect> Decode<IpSocketState, D> for IpSocketState
Source§impl Default for IpSocketState
impl Default for IpSocketState
Source§fn default() -> IpSocketState
fn default() -> IpSocketState
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<IpSocketState, D> for &IpSocketState
impl<D: ResourceDialect> Encode<IpSocketState, D> for &IpSocketState
Source§impl PartialEq for IpSocketState
impl PartialEq for IpSocketState
Source§impl TypeMarker for IpSocketState
impl TypeMarker for IpSocketState
Source§type Owned = IpSocketState
type Owned = IpSocketState
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for IpSocketState
impl ValueTypeMarker for IpSocketState
Source§type Borrowed<'a> = &'a IpSocketState
type Borrowed<'a> = &'a IpSocketState
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for IpSocketState
impl StructuralPartialEq for IpSocketState
Auto Trait Implementations§
impl Freeze for IpSocketState
impl RefUnwindSafe for IpSocketState
impl Send for IpSocketState
impl Sync for IpSocketState
impl Unpin for IpSocketState
impl UnwindSafe for IpSocketState
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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