pub struct PulseState {
pub spec: PulseSpec,
pub frame: TimedFrame<f64>,
}Fields§
§spec: PulseSpec§frame: TimedFrame<f64>Trait Implementations§
Source§impl Clone for PulseState
impl Clone for PulseState
Source§fn clone(&self) -> PulseState
fn clone(&self) -> PulseState
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 Debug for PulseState
impl Debug for PulseState
Source§impl<'de> Deserialize<'de> for PulseState
impl<'de> Deserialize<'de> for PulseState
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 PulseState
impl Flow for PulseState
Source§type Event = PulseEvent
type Event = PulseEvent
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 From<PulseSpec> for PulseState
impl From<PulseSpec> for PulseState
Auto Trait Implementations§
impl Freeze for PulseState
impl RefUnwindSafe for PulseState
impl Send for PulseState
impl Sync for PulseState
impl Unpin for PulseState
impl UnwindSafe for PulseState
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