Trait rill_protocol::flow::core::Flow[][src]

pub trait Flow: DataFraction {
    type Action: DataFraction;
    type Event: DataFraction;
    fn stream_type() -> StreamType;
fn apply(&mut self, event: Self::Event); fn pack_state(&self) -> Result<PackedState, Error> { ... }
fn unpack_state(data: &PackedState) -> Result<Self, Error> { ... }
fn pack_event(delta: &Self::Event) -> Result<PackedEvent, Error> { ... }
fn unpack_event(data: &PackedEvent) -> Result<Self::Event, Error> { ... }
fn pack_action(action: &Self::Action) -> Result<PackedAction, Error> { ... }
fn unpack_action(data: &PackedAction) -> Result<Self::Action, Error> { ... } }
Expand description

Immutable state of a data flow.

Associated Types

ControlEvent - that send from a client to a server

UpdateEvent - that sent from a server to a client

Required methods

Provided methods

Implementors