pub enum RetryMode {
Defaults,
Interactive,
}Expand description
How the monitor should recover a subscription from a fault (D-27).
The choice is per subscription because a directory’s single coalesced watcher (D-6) may be shared by subscriptions that want different things, and the monitor reconciles them by taking the earliest answer.
Variants§
Defaults
The monitor retries autonomously and indefinitely, asking nothing.
The default, which is what keeps D-14’s “no terminal fault state” true for a client that says nothing.
Interactive
On fault the monitor asks this subscription how long to wait before trying again, and waits for the answer before scheduling anything.
The cost is stated plainly: recovery then depends on the client answering. That is why it is opt-in rather than the default.
Trait Implementations§
impl Copy for RetryMode
impl Eq for RetryMode
impl StructuralPartialEq for RetryMode
Auto Trait Implementations§
impl Forget for RetryMode
impl Freeze for RetryMode
impl Move for RetryMode
impl RefUnwindSafe for RetryMode
impl Send for RetryMode
impl Sync for RetryMode
impl Unpin for RetryMode
impl UnsafeUnpin for RetryMode
impl UnwindSafe for RetryMode
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