pub struct Table<K: Kind>(/* private fields */);Expand description
One side’s table of the values of kind K. A message written or read
with it in its context (Context) refers to them by key.
Implementations§
Trait Implementations§
Source§impl<K: Kind> ErasedTable for Table<K>
impl<K: Kind> ErasedTable for Table<K>
Source§fn commit(&mut self)
fn commit(&mut self)
Keeps the keys given since the last
commit or rollback: the
message that gave them was sent.Source§fn rollback(&mut self)
fn rollback(&mut self)
Takes back the keys given since the last
commit or rollback, so
that a message that wasn’t sent defines nothing.Source§fn forget_dead(&mut self) -> Vec<u64>
fn forget_dead(&mut self) -> Vec<u64>
The keys of the values that died on the origin side, for the other
side to forget.
Auto Trait Implementations§
impl<K> Forget for Table<K>
impl<K> Freeze for Table<K>where
*const u8 is !null: Freeze,
PhantomData<(usize, (Weak<<K as Kind>::Value>, u64))>: Freeze,
PhantomData<(u64, Weak<<K as Kind>::Value>)>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<(usize, Option<(Weak<<K as Kind>::Value>, u64)>)>: Freeze,
PhantomData<(u64, Arc<<K as Kind>::Value>)>: Freeze,
PhantomData<(usize, u64)>: Freeze,
impl<K> Move for Table<K>
impl<K> RefUnwindSafe for Table<K>
impl<K> Send for Table<K>
impl<K> Sync for Table<K>
impl<K> Unpin for Table<K>
impl<K> UnsafeUnpin for Table<K>where
*const u8 is !null: UnsafeUnpin,
PhantomData<(usize, (Weak<<K as Kind>::Value>, u64))>: UnsafeUnpin,
PhantomData<(u64, Weak<<K as Kind>::Value>)>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<(usize, Option<(Weak<<K as Kind>::Value>, u64)>)>: UnsafeUnpin,
PhantomData<(u64, Arc<<K as Kind>::Value>)>: UnsafeUnpin,
PhantomData<(usize, u64)>: UnsafeUnpin,
impl<K> UnwindSafe for Table<K>where
HashMap<usize, (Weak<<K as Kind>::Value>, u64), RandomState>: UnwindSafe,
HashMap<u64, Weak<<K as Kind>::Value>, RandomState>: UnwindSafe,
RawVecInner: UnwindSafe,
NonNull<ArcInner<<K as Kind>::Value>>: UnwindSafe,
HashMap<u64, Arc<<K as Kind>::Value>, RandomState>: UnwindSafe,
HashMap<usize, u64, RandomState>: UnwindSafe,
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