pub struct SocketRecord { /* private fields */ }Implementations§
Source§impl SocketRecord
impl SocketRecord
pub const fn id(&self) -> SocketId
pub const fn owner_pid(&self) -> u32
pub const fn spec(&self) -> SocketSpec
pub const fn state(&self) -> SocketState
pub fn local_address(&self) -> Option<&InetSocketAddress>
pub fn peer_address(&self) -> Option<&InetSocketAddress>
pub fn local_unix_path(&self) -> Option<&str>
pub fn peer_unix_path(&self) -> Option<&str>
pub fn listen_backlog(&self) -> Option<usize>
pub fn pending_accept_count(&self) -> usize
pub fn peer_socket_id(&self) -> Option<SocketId>
pub fn buffered_read_bytes(&self) -> usize
pub fn read_shutdown(&self) -> bool
pub fn write_shutdown(&self) -> bool
pub fn peer_write_shutdown(&self) -> bool
pub fn queued_datagrams(&self) -> usize
pub fn queued_datagram_bytes(&self) -> usize
pub fn reuse_address(&self) -> bool
pub fn reuse_port(&self) -> bool
pub fn broadcast_enabled(&self) -> bool
pub fn multicast_membership_count(&self) -> usize
pub fn has_multicast_membership( &self, membership: &SocketMulticastMembership, ) -> bool
Trait Implementations§
Source§impl Clone for SocketRecord
impl Clone for SocketRecord
Source§fn clone(&self) -> SocketRecord
fn clone(&self) -> SocketRecord
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 Debug for SocketRecord
impl Debug for SocketRecord
impl Eq for SocketRecord
Source§impl PartialEq for SocketRecord
impl PartialEq for SocketRecord
Source§fn eq(&self, other: &SocketRecord) -> bool
fn eq(&self, other: &SocketRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SocketRecord
Auto Trait Implementations§
impl Freeze for SocketRecord
impl RefUnwindSafe for SocketRecord
impl Send for SocketRecord
impl Sync for SocketRecord
impl Unpin for SocketRecord
impl UnsafeUnpin for SocketRecord
impl UnwindSafe for SocketRecord
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more