pub struct Channel<Ctx> { /* private fields */ }Expand description
An opaque token identifying one channel registered on a task.
Obtained from TaskBuilder::add_channel (or the add_bounded /
add_unbounded convenience methods) and passed to
TaskHandler::send / try_send /
send_async to select which channel to
produce on. Cheap to copy.
Trait Implementations§
Auto Trait Implementations§
impl<Ctx> Freeze for Channel<Ctx>
impl<Ctx> RefUnwindSafe for Channel<Ctx>
impl<Ctx> Send for Channel<Ctx>
impl<Ctx> Sync for Channel<Ctx>
impl<Ctx> Unpin for Channel<Ctx>
impl<Ctx> UnsafeUnpin for Channel<Ctx>
impl<Ctx> UnwindSafe for Channel<Ctx>
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