Struct cnr::ReplicaToken [−][src]
pub struct ReplicaToken(pub usize);
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
To make it harder to use the same ReplicaToken on multiple threads.
Auto Trait Implementations
impl RefUnwindSafe for ReplicaToken
impl Sync for ReplicaToken
impl Unpin for ReplicaToken
impl UnwindSafe for ReplicaToken
Blanket Implementations
Mutably borrows from an owned value. Read more