pub struct TChan<T> { /* private fields */ }Expand description
Ubounded queue using a linked list of TVars.
This implementation builds up a linked list of TVars with a
read and a write pointer. The good thing is that the reads don’t
cause retries in writes, unlike if it was just a single TVar
with one data structure in it. It may also help that it’s more
granular, and Transaction::downcast will not clone a full
data structure.
Implementations§
Trait Implementations§
source§impl<T> TQueueLike<T> for TChan<T>where
T: Any + Sync + Send + Clone,
impl<T> TQueueLike<T> for TChan<T>where T: Any + Sync + Send + Clone,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TChan<T>
impl<T> Send for TChan<T>where T: Send,
impl<T> Sync for TChan<T>where T: Sync,
impl<T> Unpin for TChan<T>where T: Unpin,
impl<T> !UnwindSafe for TChan<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