pub struct AttemptLoop<B, J, C = ContinueSession> { /* private fields */ }Implementations§
Source§impl<B, J> AttemptLoop<B, J, ContinueSession>
impl<B, J> AttemptLoop<B, J, ContinueSession>
pub fn new(body: B, judge: J, stop: StopPolicy) -> Result<Self>
Source§impl<B, J, C> AttemptLoop<B, J, C>
impl<B, J, C> AttemptLoop<B, J, C>
pub fn with_carry<Next>(self, carry: Next) -> AttemptLoop<B, J, Next>
Sourcepub fn with_on_pass(self, hook: PassHook) -> Self
pub fn with_on_pass(self, hook: PassHook) -> Self
Runs after a passing verdict and before the completed event is emitted.
Source§impl<B, J, C> AttemptLoop<B, J, C>
impl<B, J, C> AttemptLoop<B, J, C>
pub async fn run(&self, request: AttemptRequest) -> Result<AttemptOutcome>
pub fn stream<'a>(&'a self, request: AttemptRequest) -> AttemptLoopStream<'a>
Auto Trait Implementations§
impl<B, J, C = ContinueSession> !RefUnwindSafe for AttemptLoop<B, J, C>
impl<B, J, C = ContinueSession> !UnwindSafe for AttemptLoop<B, J, C>
impl<B, J, C> Freeze for AttemptLoop<B, J, C>
impl<B, J, C> Send for AttemptLoop<B, J, C>
impl<B, J, C> Sync for AttemptLoop<B, J, C>
impl<B, J, C> Unpin for AttemptLoop<B, J, C>
impl<B, J, C> UnsafeUnpin for AttemptLoop<B, J, C>
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