pub struct TimeoutNode<S: State> { /* private fields */ }Expand description
Node wrapper that adds timeout enforcement
Wraps an inner node and enforces a maximum execution duration.
If the inner node does not complete within run_timeout, the
execution is cancelled and a [JunctureError::node_timeout] is returned.
Implementations§
Source§impl<S: State> TimeoutNode<S>
impl<S: State> TimeoutNode<S>
Trait Implementations§
Source§impl<S: State> Debug for TimeoutNode<S>
impl<S: State> Debug for TimeoutNode<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for TimeoutNode<S>
impl<S> !UnwindSafe for TimeoutNode<S>
impl<S> Freeze for TimeoutNode<S>
impl<S> Send for TimeoutNode<S>
impl<S> Sync for TimeoutNode<S>
impl<S> Unpin for TimeoutNode<S>
impl<S> UnsafeUnpin for TimeoutNode<S>
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