pub struct WindowsFetchDataWatchdog { /* private fields */ }Expand description
Deadline state for one pending fetch. The host supplies Instant values, making tests
deterministic without a Tokio timer or a background thread in the native callback path.
Implementations§
Source§impl WindowsFetchDataWatchdog
impl WindowsFetchDataWatchdog
Sourcepub const fn started(
config: WindowsFetchDataWatchdogConfig,
now: Instant,
) -> Self
pub const fn started( config: WindowsFetchDataWatchdogConfig, now: Instant, ) -> Self
Starts a watchdog at now.
Sourcepub fn deadline(self) -> Option<Instant>
pub fn deadline(self) -> Option<Instant>
Returns the next deadline, or None if the host clock cannot represent it.
Trait Implementations§
Source§impl Clone for WindowsFetchDataWatchdog
impl Clone for WindowsFetchDataWatchdog
Source§fn clone(&self) -> WindowsFetchDataWatchdog
fn clone(&self) -> WindowsFetchDataWatchdog
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 moreSource§impl Debug for WindowsFetchDataWatchdog
impl Debug for WindowsFetchDataWatchdog
Source§impl PartialEq for WindowsFetchDataWatchdog
impl PartialEq for WindowsFetchDataWatchdog
impl Copy for WindowsFetchDataWatchdog
impl Eq for WindowsFetchDataWatchdog
impl StructuralPartialEq for WindowsFetchDataWatchdog
Auto Trait Implementations§
impl Freeze for WindowsFetchDataWatchdog
impl RefUnwindSafe for WindowsFetchDataWatchdog
impl Send for WindowsFetchDataWatchdog
impl Sync for WindowsFetchDataWatchdog
impl Unpin for WindowsFetchDataWatchdog
impl UnwindSafe for WindowsFetchDataWatchdog
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