pub struct MkAsyncChannel<T> { /* private fields */ }Expand description
Zero-copy channel for transferring ownership between tasks.
Implementations§
Source§impl<T> MkAsyncChannel<T>
impl<T> MkAsyncChannel<T>
Sourcepub fn split(self) -> (MkAsyncSender<T>, MkAsyncReceiver<T>)
pub fn split(self) -> (MkAsyncSender<T>, MkAsyncReceiver<T>)
Create sender and receiver handles.
Auto Trait Implementations§
impl<T> Freeze for MkAsyncChannel<T>
impl<T> RefUnwindSafe for MkAsyncChannel<T>
impl<T> Send for MkAsyncChannel<T>where
T: Send,
impl<T> Sync for MkAsyncChannel<T>where
T: Send,
impl<T> Unpin for MkAsyncChannel<T>
impl<T> UnwindSafe for MkAsyncChannel<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