[][src]Struct node_replication::ReplicaToken

pub struct ReplicaToken(_);

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

impl ReplicaToken[src]

pub fn id(&self) -> usize[src]

Getter for id

Trait Implementations

impl Clone for ReplicaToken[src]

impl Copy for ReplicaToken[src]

impl Debug for ReplicaToken[src]

impl PartialEq<ReplicaToken> for ReplicaToken[src]

impl !Send for ReplicaToken[src]

To make it harder to use the same ReplicaToken on multiple threads.

impl StructuralPartialEq for ReplicaToken[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.