pub enum OnIoError {
Die,
Retry,
}Expand description
What the socket should do if an IO error is encountered.
Variants§
Die
Close the socket connection permanently.
Retry
Retry according to the configured reconnection strategy.
Trait Implementations§
impl Copy for OnIoError
impl Eq for OnIoError
impl StructuralPartialEq for OnIoError
Auto Trait Implementations§
impl Freeze for OnIoError
impl RefUnwindSafe for OnIoError
impl Send for OnIoError
impl Sync for OnIoError
impl Unpin for OnIoError
impl UnwindSafe for OnIoError
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