pub enum InetSocketRef<'a> {
    LegacyTcp(AtomicRef<'a, LegacyTcpSocket>),
    Tcp(AtomicRef<'a, TcpSocket>),
    Udp(AtomicRef<'a, UdpSocket>),
}Variants§
LegacyTcp(AtomicRef<'a, LegacyTcpSocket>)
Tcp(AtomicRef<'a, TcpSocket>)
Udp(AtomicRef<'a, UdpSocket>)
Implementations§
Source§impl InetSocketRef<'_>
 
impl InetSocketRef<'_>
pub fn state(&self) -> FileState
pub fn mode(&self) -> FileMode
pub fn status(&self) -> FileStatus
pub fn stat(&self) -> Result<stat, SyscallError>
pub fn has_open_file(&self) -> bool
pub fn supports_sa_restart(&self) -> bool
Source§impl InetSocketRef<'_>
 
impl InetSocketRef<'_>
pub fn getpeername(&self) -> Result<Option<SockaddrStorage>, Errno>
pub fn getsockname(&self) -> Result<Option<SockaddrStorage>, Errno>
pub fn address_family(&self) -> AddressFamily
Source§impl InetSocketRef<'_>
 
impl InetSocketRef<'_>
pub fn peek_next_packet_priority(&self) -> Option<FifoPacketPriority>
pub fn has_data_to_send(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InetSocketRef<'a>
impl<'a> !RefUnwindSafe for InetSocketRef<'a>
impl<'a> Send for InetSocketRef<'a>
impl<'a> Sync for InetSocketRef<'a>
impl<'a> Unpin for InetSocketRef<'a>
impl<'a> !UnwindSafe for InetSocketRef<'a>
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> 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