pub enum SocketRef<'a> {
    Unix(AtomicRef<'a, UnixSocket>),
    Inet(InetSocketRef<'a>),
    Netlink(AtomicRef<'a, NetlinkSocket>),
}Variants§
Implementations§
Source§impl SocketRef<'_>
 
impl SocketRef<'_>
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 SocketRef<'_>
 
impl SocketRef<'_>
pub fn getpeername(&self) -> Result<Option<SockaddrStorage>, Errno>
pub fn getsockname(&self) -> Result<Option<SockaddrStorage>, Errno>
pub fn address_family(&self) -> AddressFamily
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SocketRef<'a>
impl<'a> !RefUnwindSafe for SocketRef<'a>
impl<'a> Send for SocketRef<'a>
impl<'a> Sync for SocketRef<'a>
impl<'a> Unpin for SocketRef<'a>
impl<'a> !UnwindSafe for SocketRef<'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