#[non_exhaustive]pub enum NetworkStatusPolicy {
Ignore,
PauseOnUnavailable,
}Expand description
Controls whether local reachability participates in WebSocket connection control.
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.
Ignore
Preserve existing behavior and rely on heartbeats and transport errors.
Invalidate active connections and pause attempts while the monitor reports
unavailable, retaining eligible connection intent for later recovery.
Recovery remains bounded by the reconnect policy’s elapsed-time budget;
connections using this policy must configure
ReconnectPolicy::max_elapsed as Some(...).
Trait Implementations§
Source§impl Clone for NetworkStatusPolicy
impl Clone for NetworkStatusPolicy
impl Copy for NetworkStatusPolicy
Source§impl Debug for NetworkStatusPolicy
impl Debug for NetworkStatusPolicy
Source§impl Default for NetworkStatusPolicy
impl Default for NetworkStatusPolicy
impl Eq for NetworkStatusPolicy
Source§impl PartialEq for NetworkStatusPolicy
impl PartialEq for NetworkStatusPolicy
impl StructuralPartialEq for NetworkStatusPolicy
Auto Trait Implementations§
impl Forget for NetworkStatusPolicy
impl Freeze for NetworkStatusPolicy
impl Move for NetworkStatusPolicy
impl RefUnwindSafe for NetworkStatusPolicy
impl Send for NetworkStatusPolicy
impl Sync for NetworkStatusPolicy
impl Unpin for NetworkStatusPolicy
impl UnsafeUnpin for NetworkStatusPolicy
impl UnwindSafe for NetworkStatusPolicy
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