pub struct CheckContext {
pub timeout: Duration,
}Expand description
Inputs a probe may need. The doctor command enforces timeout on the whole
check() call; connectors may also use it to bound their own client calls.
Fields§
§timeout: DurationWall-clock budget for a single check() invocation.
Trait Implementations§
Source§impl Clone for CheckContext
impl Clone for CheckContext
Source§fn clone(&self) -> CheckContext
fn clone(&self) -> CheckContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CheckContext
impl Debug for CheckContext
Auto Trait Implementations§
impl Freeze for CheckContext
impl RefUnwindSafe for CheckContext
impl Send for CheckContext
impl Sync for CheckContext
impl Unpin for CheckContext
impl UnsafeUnpin for CheckContext
impl UnwindSafe for CheckContext
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