pub struct ReplicaToken(/* private fields */);Expand description
A token handed out to threads registered with replicas.
§Note
Ideally this would be an affine type and returned again by
execute and execute_ro. However it feels like this would
hurt API ergonomics a lot.
Implementations§
Trait Implementations§
Source§impl Clone for ReplicaToken
impl Clone for ReplicaToken
Source§fn clone(&self) -> ReplicaToken
fn clone(&self) -> ReplicaToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplicaToken
impl Debug for ReplicaToken
Source§impl PartialEq for ReplicaToken
impl PartialEq for ReplicaToken
impl Copy for ReplicaToken
impl StructuralPartialEq for ReplicaToken
Auto Trait Implementations§
impl Freeze for ReplicaToken
impl RefUnwindSafe for ReplicaToken
impl Send for ReplicaToken
impl Sync for ReplicaToken
impl Unpin for ReplicaToken
impl UnwindSafe for ReplicaToken
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