#[non_exhaustive]pub enum PreemptReason {
ConnectionLimit,
QuotaExceeded,
Other(String),
}Expand description
reason of a connection.preempted frame.
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.
ConnectionLimit
connection_limit
QuotaExceeded
quota_exceeded
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Source§impl PreemptReason
impl PreemptReason
pub const CONNECTION_LIMIT: &'static str = "connection_limit"
pub const QUOTA_EXCEEDED: &'static str = "quota_exceeded"
Trait Implementations§
Source§impl AsRef<str> for PreemptReason
impl AsRef<str> for PreemptReason
Source§impl Clone for PreemptReason
impl Clone for PreemptReason
Source§impl Debug for PreemptReason
impl Debug for PreemptReason
Source§impl<'de> Deserialize<'de> for PreemptReason
impl<'de> Deserialize<'de> for PreemptReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PreemptReason
impl Display for PreemptReason
impl Eq for PreemptReason
Source§impl From<&String> for PreemptReason
impl From<&String> for PreemptReason
Source§impl From<&str> for PreemptReason
impl From<&str> for PreemptReason
Source§impl From<PreemptReason> for String
impl From<PreemptReason> for String
Source§fn from(value: PreemptReason) -> Self
fn from(value: PreemptReason) -> Self
Converts to this type from the input type.
Source§impl From<String> for PreemptReason
impl From<String> for PreemptReason
Source§impl Hash for PreemptReason
impl Hash for PreemptReason
Source§impl PartialEq for PreemptReason
impl PartialEq for PreemptReason
Source§impl PartialEq<&str> for PreemptReason
impl PartialEq<&str> for PreemptReason
Source§impl PartialEq<PreemptReason> for &str
impl PartialEq<PreemptReason> for &str
Source§impl PartialEq<str> for PreemptReason
impl PartialEq<str> for PreemptReason
Auto Trait Implementations§
impl Forget for PreemptReason
impl Freeze for PreemptReason
impl Move for PreemptReason
impl RefUnwindSafe for PreemptReason
impl Send for PreemptReasonwhere
RawVecInner: Send,
impl Sync for PreemptReasonwhere
RawVecInner: Sync,
impl Unpin for PreemptReason
impl UnsafeUnpin for PreemptReason
impl UnwindSafe for PreemptReasonwhere
RawVecInner: UnwindSafe,
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