Struct omaha_client::state_machine::update_check::Context
source · pub struct Context {
pub schedule: UpdateCheckSchedule,
pub state: ProtocolState,
}
Expand description
The Context provides the protocol context for a given update check operation. This is information that’s passed to the Policy to allow it to properly reason about what can and cannot be done at this time.
Fields§
§schedule: UpdateCheckSchedule
The last-computed time to next check for an update.
state: ProtocolState
The state of the protocol (retries, errors, etc.) as of the last update check that was attempted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)