pub struct GaugeState {
pub range: Range,
pub timestamp: Option<Timestamp>,
pub value: f64,
}Fields§
§range: Range§timestamp: Option<Timestamp>§value: f64Implementations§
Trait Implementations§
Source§impl Clone for GaugeState
impl Clone for GaugeState
Source§fn clone(&self) -> GaugeState
fn clone(&self) -> GaugeState
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 GaugeState
impl Debug for GaugeState
Source§impl<'de> Deserialize<'de> for GaugeState
impl<'de> Deserialize<'de> for GaugeState
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 GaugeState
impl Flow for GaugeState
Source§type Event = GaugeEvent
type Event = GaugeEvent
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 GaugeState
impl RefUnwindSafe for GaugeState
impl Send for GaugeState
impl Sync for GaugeState
impl Unpin for GaugeState
impl UnwindSafe for GaugeState
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