pub struct Config {
pub wait_calc_timeout: Duration,
pub check_calc_delay: Duration,
}
Expand description
Configuration for Shalc.
Fields§
§wait_calc_timeout: Duration
Timeout for waiting while Calculation is free (Arc have only one reference to it).
When timeout exceeds, Shalc pauses calculations and sends notification:
Notification::ErrorOccurred(UpdateError::CalcNotFree(CalcNotFreeError::WaitTimeoutExceeded))
check_calc_delay: Duration
Delay between checks for Calculation is free (Arc have only one reference to it).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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