pub struct FunctionState {
pub value: f64,
pub last_time: Time,
pub user_state: Arc<dyn Any + Send + Sync>,
}Expand description
Состояние функционального автомата
Fields§
§value: f64Последнее вычисленное значение
last_time: TimeВремя последнего обновления
user_state: Arc<dyn Any + Send + Sync>Пользовательское состояние (для stateful функций)
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 · 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