pub struct UnixStream { /* private fields */ }
Implementations§
Source§impl UnixStream
impl UnixStream
pub fn pair() -> Result<(Self, Self), Errno>
pub fn as_fd(&self) -> Fd
pub fn recv_with_fd( &self, buffer: &mut [u8], ) -> Result<(usize, Option<OwnedFd>), Errno>
pub fn send(&self, buffer: &[u8]) -> Result<usize, Errno>
pub fn send_with_fd(&self, buffer: &[u8], fd: Fd) -> Result<usize, Errno>
pub fn shutdown(&self) -> Result<(), Errno>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnixStream
impl RefUnwindSafe for UnixStream
impl Send for UnixStream
impl Sync for UnixStream
impl Unpin for UnixStream
impl UnwindSafe for UnixStream
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