pub struct LogFlowState {
pub depth: u32,
pub logs: VecDeque<String>,
}Fields§
§depth: u32§logs: VecDeque<String>Implementations§
Source§impl LogFlowState
impl LogFlowState
Trait Implementations§
Source§impl Clone for LogFlowState
impl Clone for LogFlowState
Source§impl Debug for LogFlowState
impl Debug for LogFlowState
Source§impl<'de> Deserialize<'de> for LogFlowState
impl<'de> Deserialize<'de> for LogFlowState
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 Flow for LogFlowState
impl Flow for LogFlowState
Source§type Action = LogFlowAction
type Action = LogFlowAction
ControlEvent - that send from a client to a serverSource§type Event = LogFlowEvent
type Event = LogFlowEvent
UpdateEvent - that sent from a server to a clientfn stream_type() -> StreamType
fn apply(&mut self, event: TimedEvent<Self::Event>)
fn pack_state(&self) -> Result<PackedState, Error>
fn unpack_state(data: &PackedState) -> Result<Self, Error>
fn pack_event(delta: &TimedEvent<Self::Event>) -> Result<PackedEvent, Error>
fn unpack_event(data: &PackedEvent) -> Result<TimedEvent<Self::Event>, Error>
fn pack_action(action: &Self::Action) -> Result<PackedAction, Error>
fn unpack_action(data: &PackedAction) -> Result<Self::Action, Error>
Auto Trait Implementations§
impl Freeze for LogFlowState
impl RefUnwindSafe for LogFlowState
impl Send for LogFlowState
impl Sync for LogFlowState
impl Unpin for LogFlowState
impl UnsafeUnpin for LogFlowState
impl UnwindSafe for LogFlowState
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