#[non_exhaustive]pub enum AttentionFlag {
ApprovalPending,
InputPending,
AdmissionPending,
Unknown(String),
}Expand description
One attention flag: a pending server-initiated request class parked on the session. Open on the wire — clients MUST ignore unknown values; future attention kinds are additive.
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.
ApprovalPending
At least one approval request is open and unresolved.
InputPending
At least one user-input request is open.
AdmissionPending
At least one peer-admission request is open. Experimental: stripped per-connection for unopted callers.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for AttentionFlag
impl Clone for AttentionFlag
Source§impl Debug for AttentionFlag
impl Debug for AttentionFlag
Source§impl<'de> Deserialize<'de> for AttentionFlag
impl<'de> Deserialize<'de> for AttentionFlag
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttentionFlag
Source§impl PartialEq for AttentionFlag
impl PartialEq for AttentionFlag
Source§impl Serialize for AttentionFlag
impl Serialize for AttentionFlag
impl StructuralPartialEq for AttentionFlag
Auto Trait Implementations§
impl Freeze for AttentionFlag
impl RefUnwindSafe for AttentionFlag
impl Send for AttentionFlag
impl Sync for AttentionFlag
impl Unpin for AttentionFlag
impl UnsafeUnpin for AttentionFlag
impl UnwindSafe for AttentionFlag
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