Enum actyxos_sdk::event_service::Order[][src]

pub enum Order {
    Lamport,
    LamportReverse,
    SourceOrdered,
}
Expand description

The order in which you want to receive events for a query

Event streams can be request with different ordering requirements from the Event Service:

  • in strict forward Lamport order
  • in strict backwards Lamport order (only possible when requesting with an upper bound OffsetMap)
  • ordered in forward order per source (ActyxOS node), but not between sources

Variants

Lamport

Events are sorted by ascending Lamport timestamp and source ID, which defines a total order. If the subscription does not restrict the set of source IDs then a new source appearing with old events will lead to these old events only being delivered if they are younger than the youngest already delivered event.

Requesting this order will stall the stream’s delivery while one of the contained sources stops sending events (for example when it goes offline or is destroyed).

LamportReverse

Events are sorted by descending Lamport timestamp and descending source ID, which is the exact reverse of the Lamport ordering. Requests with this ordering will only be successful if they include an upper bound OffsetMap and if that map is less than or equal to the OffsetMap obtained with the get_offsets method.

SourceOrdered

Events are sorted within each stream by ascending Lamport timestamp, with streams from different sources interleaved in an undefined order.

This is the preferred ordering for live streams as it permits new information to be made available as soon as it is delivered to the ActyxOS node, without needing to wait for all other sources to confirm the ordering first.

Trait Implementations

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

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

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

Compare self to key and return true if they are equal.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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