pub struct ForecastingState {
pub forecaster: Arc<Forecaster>,
}Expand description
State for forecasting handlers
Fields§
§forecaster: Arc<Forecaster>Forecaster engine
Implementations§
Source§impl ForecastingState
impl ForecastingState
Sourcepub fn new(forecaster: Arc<Forecaster>) -> Self
pub fn new(forecaster: Arc<Forecaster>) -> Self
Create handler state without a persistence connection.
This constructor works when dependency feature unification enables database support.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForecastingState
impl RefUnwindSafe for ForecastingState
impl Send for ForecastingState
impl Sync for ForecastingState
impl Unpin for ForecastingState
impl UnsafeUnpin for ForecastingState
impl UnwindSafe for ForecastingState
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