pub struct ModuleContext {
pub deadline: Instant,
/* private fields */
}Expand description
Passed to a module so it can stop early: the deadline, and a flag set once it has passed.
Fields§
§deadline: InstantImplementations§
Source§impl ModuleContext
impl ModuleContext
Trait Implementations§
Source§impl Clone for ModuleContext
impl Clone for ModuleContext
Auto Trait Implementations§
impl Freeze for ModuleContext
impl RefUnwindSafe for ModuleContext
impl Send for ModuleContext
impl Sync for ModuleContext
impl Unpin for ModuleContext
impl UnsafeUnpin for ModuleContext
impl UnwindSafe for ModuleContext
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