pub enum OnPanic {
Abort,
Reconnect,
}Expand description
What an adapter does when its session task panics.
Variants§
Abort
End the adapter. Default so a bug stays visible.
Reconnect
Treat the panic as a failed session, then follow the adapter’s own reconnect setting.
Trait Implementations§
impl Copy for OnPanic
impl Eq for OnPanic
impl StructuralPartialEq for OnPanic
Auto Trait Implementations§
impl Freeze for OnPanic
impl RefUnwindSafe for OnPanic
impl Send for OnPanic
impl Sync for OnPanic
impl Unpin for OnPanic
impl UnwindSafe for OnPanic
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