pub struct Channel {
pub buffer: RefCell<VecDeque<Value>>,
pub capacity: usize,
pub closed: Cell<bool>,
}Expand description
A bounded async channel for communication between coroutines.
Fields§
§buffer: RefCell<VecDeque<Value>>§capacity: usize§closed: Cell<bool>Trait 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