#[non_exhaustive]pub enum Filtering {
Filtered,
Unfiltered,
Unrecognized {
literal: String,
},
}Expand description
Whether the server may drop or merge updates for a subscription to keep up
[docs/spec/04-notifications.md §3.8].
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.
Filtered
The server may filter: it merges or discards updates rather than fall behind, and you see fewer events than the adapter produced.
Unfiltered
The server may not filter: every update is delivered. If it cannot keep
up it says so with a SubscriptionEvent::Overflow rather than
dropping silently.
Unrecognized
The server named a mode this version does not know.
Preserved rather than rejected, so a newer server cannot break an older client over one word of an otherwise well-formed line.
Trait Implementations§
impl Eq for Filtering
Source§impl Ord for Filtering
impl Ord for Filtering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Filtering
impl PartialOrd for Filtering
impl StructuralPartialEq for Filtering
Auto Trait Implementations§
impl Freeze for Filtering
impl RefUnwindSafe for Filtering
impl Send for Filtering
impl Sync for Filtering
impl Unpin for Filtering
impl UnsafeUnpin for Filtering
impl UnwindSafe for Filtering
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