pub struct TBQueue<T> { /* private fields */ }Expand description
Bounded queue using two vectors.
Similar to [TQueue] but every read and write touches a common TVar to track the current capacity, retrying if the queue is full.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TBQueue<T>
impl<T> Send for TBQueue<T>where T: Send,
impl<T> Sync for TBQueue<T>where T: Sync,
impl<T> Unpin for TBQueue<T>where T: Unpin,
impl<T> !UnwindSafe for TBQueue<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