pub struct StepTimeoutGuard { /* private fields */ }Expand description
Guard for enforcing step timeouts
Implementations§
Source§impl StepTimeoutGuard
impl StepTimeoutGuard
Sourcepub fn is_timed_out(&self) -> bool
pub fn is_timed_out(&self) -> bool
Check if the timeout has been exceeded
Sourcepub fn check(&self) -> Result<(), ExecutionError>
pub fn check(&self) -> Result<(), ExecutionError>
Check and return an error if timed out
Auto Trait Implementations§
impl Freeze for StepTimeoutGuard
impl RefUnwindSafe for StepTimeoutGuard
impl Send for StepTimeoutGuard
impl Sync for StepTimeoutGuard
impl Unpin for StepTimeoutGuard
impl UnsafeUnpin for StepTimeoutGuard
impl UnwindSafe for StepTimeoutGuard
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