pub struct Dot<A> {
pub actor: A,
pub counter: u64,
}
Expand description
Dot is a version marker for a single actor
Fields§
§actor: A
The actor identifier
counter: u64
The current version of this actor
Implementations§
Trait Implementations§
source§impl<'de, A> Deserialize<'de> for Dot<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for Dot<A>where A: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<A: PartialEq> PartialEq<Dot<A>> for Dot<A>
impl<A: PartialEq> PartialEq<Dot<A>> for Dot<A>
source§impl<A: PartialOrd> PartialOrd<Dot<A>> for Dot<A>
impl<A: PartialOrd> PartialOrd<Dot<A>> for Dot<A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<A: Copy> Copy for Dot<A>
impl<A: Eq> Eq for Dot<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Dot<A>where A: RefUnwindSafe,
impl<A> Send for Dot<A>where A: Send,
impl<A> Sync for Dot<A>where A: Sync,
impl<A> Unpin for Dot<A>where A: Unpin,
impl<A> UnwindSafe for Dot<A>where A: 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