pub struct SchedulePolicy {
pub backoff: BackoffPolicy,
pub idle_secs: f64,
pub min_secs: f64,
pub cancelled_secs: f64,
}Expand description
Delays the scheduler suggests. backoff should match the engine’s SyncConfig::backoff.
Fields§
§backoff: BackoffPolicy§idle_secs: f64Delay after a fully synced pass. Android’s periodic WorkManager minimum is 15 minutes.
min_secs: f64No suggested delay is shorter than this.
cancelled_secs: f64Suggested delay after a pass that could not give an engine delay (cancelled).
Trait Implementations§
Source§impl Clone for SchedulePolicy
impl Clone for SchedulePolicy
Source§impl Debug for SchedulePolicy
impl Debug for SchedulePolicy
Source§impl Default for SchedulePolicy
impl Default for SchedulePolicy
Source§impl PartialEq for SchedulePolicy
impl PartialEq for SchedulePolicy
impl StructuralPartialEq for SchedulePolicy
Auto Trait Implementations§
impl Forget for SchedulePolicy
impl Freeze for SchedulePolicy
impl Move for SchedulePolicy
impl RefUnwindSafe for SchedulePolicy
impl Send for SchedulePolicy
impl Sync for SchedulePolicy
impl Unpin for SchedulePolicy
impl UnsafeUnpin for SchedulePolicy
impl UnwindSafe for SchedulePolicy
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