pub struct FunctionState {
pub value: f64,
pub last_time: Time,
pub user_state: Arc<dyn Any + Send + Sync>,
}Expand description
Functional automaton state
Fields§
§value: f64Last computed value
last_time: TimeTime of last update
user_state: Arc<dyn Any + Send + Sync>User-defined state (for stateful functions)
Trait Implementations§
Source§impl Clone for FunctionState
impl Clone for FunctionState
Source§fn clone(&self) -> FunctionState
fn clone(&self) -> FunctionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionState
impl !RefUnwindSafe for FunctionState
impl Send for FunctionState
impl Sync for FunctionState
impl Unpin for FunctionState
impl UnsafeUnpin for FunctionState
impl !UnwindSafe for FunctionState
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