pub struct RegionData {
    pub hash: RegionHash,
    pub size: u32,
    pub count: u32,
}
Expand description

The pertinent data that we care about for each Region. This is what gets sent over gossip so that nodes can discover which Regions are different between them.

The size and count data can also act as heuristics to help us fine-tune the gossip algorithm, although currently they are unused (except for the purpose of disambiguation in the rare case of an XOR hash collision).

Fields

hash: RegionHash

The XOR of hashes of all Ops in this Region

size: u32

The total size of Op data contains in this Region

count: u32

The number of Ops in this Region.

Trait Implementations

Query the actual ops inside a region

Query the RegionData of a region, including the hash of all ops, size, and count

Fetch a set of Regions (the coords and the data) given the set of coords

Integrate incoming ops, updating the necessary stores

Get the Topology associated with this store

Get the GossipParams associated with this store

Integrate a single op

Get the RegionSet for this node, suitable for gossiping

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

The op’s Location

The op’s Timestamp

The RegionData that would be produced if this op were the only op in the region. The sum of these produces the RegionData for the whole region. Read more

Create an Op with arbitrary data but that has the given timestamp and location. Used for bounded range queries based on the PartialOrd impl of the op. Read more

The quantized space and time coordinates, based on the location and timestamp.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

Sets self to the additive identity element of Self, 0.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more