pub struct MetaFlowState<T: MetaFlowSpec> {
pub meta: Option<T::Meta>,
}
Fields§
§meta: Option<T::Meta>
Implementations§
Source§impl<T: MetaFlowSpec> MetaFlowState<T>
impl<T: MetaFlowSpec> MetaFlowState<T>
Trait Implementations§
Source§impl<T: Clone + MetaFlowSpec> Clone for MetaFlowState<T>
impl<T: Clone + MetaFlowSpec> Clone for MetaFlowState<T>
Source§fn clone(&self) -> MetaFlowState<T>
fn clone(&self) -> MetaFlowState<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 + MetaFlowSpec> Debug for MetaFlowState<T>
impl<T: Debug + MetaFlowSpec> Debug for MetaFlowState<T>
Source§impl<'de, T: MetaFlowSpec> Deserialize<'de> for MetaFlowState<T>
impl<'de, T: MetaFlowSpec> Deserialize<'de> for MetaFlowState<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: MetaFlowSpec> Flow for MetaFlowState<T>
impl<T: MetaFlowSpec> Flow for MetaFlowState<T>
Source§type Action = MetaFlowAction
type Action = MetaFlowAction
ControlEvent
- that send from a client to a serverSource§type Event = MetaFlowEvent<T>
type Event = MetaFlowEvent<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: MetaFlowSpec> Serialize for MetaFlowState<T>
impl<T: MetaFlowSpec> Serialize for MetaFlowState<T>
Auto Trait Implementations§
impl<T> Freeze for MetaFlowState<T>
impl<T> RefUnwindSafe for MetaFlowState<T>
impl<T> Send for MetaFlowState<T>
impl<T> Sync for MetaFlowState<T>
impl<T> Unpin for MetaFlowState<T>
impl<T> UnwindSafe for MetaFlowState<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