Struct ditto::counter::Op
[−]
[src]
pub struct Op { /* fields omitted */ }
Methods
impl Op
[src]
pub fn site_id(&self) -> SiteId
[src]
Returns the Op site id.
pub fn counter(&self) -> RCounter
[src]
returns the Op counter.
pub fn inc(&self) -> i64
[src]
Returns the Op inc.
pub fn add_site_id(&mut self, site_id: SiteId)
[src]
Assigns a new site id to the op.
pub fn validate(&self, site_id: SiteId) -> Result<(), Error>
[src]
Validates that the Op's site id is equal to the given site id.
Trait Implementations
impl Debug for Op
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Op
[src]
fn clone(&self) -> Op
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more