#[non_exhaustive]pub enum Recovery {
Reconnect,
Skip,
Stop,
}Expand description
What to do after a failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reconnect
Replace the connection: back off, connect again and replay the membership.
Skip
Yield the error and keep the connection, such as for one frame that
did not decode. A failed connection attempt has no connection to keep,
so there it reads as Reconnect.
Stop
Yield the error and end the stream: retrying replays the same failure.
Trait Implementations§
impl Copy for Recovery
impl Eq for Recovery
impl StructuralPartialEq for Recovery
Auto Trait Implementations§
impl Freeze for Recovery
impl RefUnwindSafe for Recovery
impl Send for Recovery
impl Sync for Recovery
impl Unpin for Recovery
impl UnsafeUnpin for Recovery
impl UnwindSafe for Recovery
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