pub trait LogEntry: Clone + Debug + Send + Sync + Unpin + 'static where
    Self: Serialize,
    for<'de> Self: Deserialize<'de>, 
{ type Id: Identifier; fn id(&self) -> Self::Id; }
Expand description

Appended to the shared log and applied to the shared State.

Required Associated Types

Log entry ID type.

Required Methods

Returns a unique identifier for the log entry.

Identifiers need only be unique within the rough timeframe of them being appended to the distributed log. That notwithstanding it is recommended that UUIDs or some other “universally unique” identifier are used.

Implementors