pub struct Mpsc<T> { /* private fields */ }Trait Implementations§
Source§impl<R: Sync + Send + 'static> RawChan for Mpsc<R>
impl<R: Sync + Send + 'static> RawChan for Mpsc<R>
type R = R
type SendFuture<'a> = impl Future<Output = Result<(), Error>> + 'a where Self: 'a
type RecvFuture<'a> = impl Future<Output = Result<R, Error>> + 'a where Self: 'a
type CloseFuture = impl Future<Output = Result<(), Error>> + 'static
fn send(&mut self, r: R) -> Self::SendFuture<'_>
fn recv(&mut self) -> Self::RecvFuture<'_>
fn close(self) -> Self::CloseFuture
Auto Trait Implementations§
impl<T> Freeze for Mpsc<T>
impl<T> RefUnwindSafe for Mpsc<T>
impl<T> Send for Mpsc<T>where
T: Send,
impl<T> Sync for Mpsc<T>where
T: Send,
impl<T> Unpin for Mpsc<T>
impl<T> UnwindSafe for Mpsc<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