pub struct MpscFdSender<T> { /* private fields */ }Expand description
Sender half of an MpscFd pair
Implementations§
Source§impl<T> MpscFdSender<T>
impl<T> MpscFdSender<T>
Sourcepub fn try_send(&mut self, msg: T) -> Result<(), TrySendError<T>>
pub fn try_send(&mut self, msg: T) -> Result<(), TrySendError<T>>
Send a message through the mpsc channel and write a byte to the pipe. Fails immediately if the pipe is full.
Sourcepub fn blocking_send(&mut self, msg: T) -> Result<(), SendError<T>>
pub fn blocking_send(&mut self, msg: T) -> Result<(), SendError<T>>
Send a message through the mpsc channel and block until the message is sent.
This may not be fair in the case of multiple senders.
pub fn try_clone(&self) -> Result<Self>
Trait Implementations§
Source§impl<T> AsRawFd for MpscFdSender<T>
Available on Unix only.
impl<T> AsRawFd for MpscFdSender<T>
Available on Unix only.
Source§impl<'a, T> Into<BorrowedFd<'a>> for &'a MpscFdSender<T>
Available on Unix only.
impl<'a, T> Into<BorrowedFd<'a>> for &'a MpscFdSender<T>
Available on Unix only.
Source§fn into(self) -> BorrowedFd<'a>
fn into(self) -> BorrowedFd<'a>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<T> Freeze for MpscFdSender<T>
impl<T> RefUnwindSafe for MpscFdSender<T>
impl<T> Send for MpscFdSender<T>where
T: Send,
impl<T> Sync for MpscFdSender<T>where
T: Send,
impl<T> Unpin for MpscFdSender<T>
impl<T> UnsafeUnpin for MpscFdSender<T>
impl<T> UnwindSafe for MpscFdSender<T>
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