pub struct Channel {
pub id: ChannelId,
}Expand description
A bounded async channel for communication between coroutines.
A bounded async channel: a thin handle to a channel in the unified runtime’s
ChannelRegistry, which owns the buffer, capacity, closed flag, and the
parked sender/receiver queues. The handle carries only the checked
ChannelId (Copy, runtime-scoped), so it holds no GC edges — the buffered
values live in the registry, not on this handle.
Fields§
§id: ChannelIdTrait Implementations§
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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