pub struct Room { /* private fields */ }Expand description
Reusable ROOM_LEN-byte buffer for arriving message bytes.
§Trait implementations
Dropreturns the unused credits; workers retain access to committed bytes until they finish.Sendlets another thread take the token and its exclusive access to the writable bytes.Syncpermits sharing a reference; writing still requires an exclusive borrow.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Room
impl !UnwindSafe for Room
impl Freeze for Room
impl Unpin for Room
impl UnsafeUnpin for Room
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