pub struct ListFlowState<T: ListFlowSpec> {
pub records: BTreeMap<T::Id, T::Record>,
}
Fields§
§records: BTreeMap<T::Id, T::Record>
Implementations§
Source§impl<T: ListFlowSpec> ListFlowState<T>
impl<T: ListFlowSpec> ListFlowState<T>
Trait Implementations§
Source§impl<T: Clone + ListFlowSpec> Clone for ListFlowState<T>
impl<T: Clone + ListFlowSpec> Clone for ListFlowState<T>
Source§fn clone(&self) -> ListFlowState<T>
fn clone(&self) -> ListFlowState<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug + ListFlowSpec> Debug for ListFlowState<T>
impl<T: Debug + ListFlowSpec> Debug for ListFlowState<T>
Source§impl<'de, T: ListFlowSpec> Deserialize<'de> for ListFlowState<T>
impl<'de, T: ListFlowSpec> Deserialize<'de> for ListFlowState<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: ListFlowSpec> Flow for ListFlowState<T>
impl<T: ListFlowSpec> Flow for ListFlowState<T>
Source§type Action = ListActionEnvelope<T>
type Action = ListActionEnvelope<T>
ControlEvent
- that send from a client to a serverSource§type Event = ListEventEnvelope<T>
type Event = ListEventEnvelope<T>
UpdateEvent
- that sent from a server to a clientfn 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>
Source§impl<T: ListFlowSpec> Serialize for ListFlowState<T>
impl<T: ListFlowSpec> Serialize for ListFlowState<T>
Auto Trait Implementations§
impl<T> Freeze for ListFlowState<T>
impl<T> RefUnwindSafe for ListFlowState<T>
impl<T> Send for ListFlowState<T>
impl<T> Sync for ListFlowState<T>
impl<T> Unpin for ListFlowState<T>
impl<T> UnwindSafe for ListFlowState<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more