pub enum AfterSession {
ReturnOk,
ReturnErr(AdapterError),
Retry {
message: String,
},
}Expand description
What a session retry loop does after one session task ends.
Variants§
ReturnOk
Shut down cleanly.
ReturnErr(AdapterError)
Shut down with this fatal error.
Retry
Sleep, then start another session. Carries a message worth logging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AfterSession
impl !RefUnwindSafe for AfterSession
impl Send for AfterSession
impl Sync for AfterSession
impl Unpin for AfterSession
impl !UnwindSafe for AfterSession
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