#[non_exhaustive]pub enum ReconnectReason {
Rotation,
Watchdog,
Closed,
HandshakeFailed,
SearchFailed,
DialFailed,
DialRefused,
ConnectionLimit,
RateLimited,
QuotaExceeded,
Other(String),
}Expand description
Why a stream opened a new connection (see ReconnectInfo).
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.
Rotation
rotation
Watchdog
watchdog
Closed
closed
HandshakeFailed
handshake_failed
SearchFailed
search_failed
DialFailed
dial_failed
DialRefused
dial_refused
ConnectionLimit
connection_limit
RateLimited
rate_limited
QuotaExceeded
quota_exceeded
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Source§impl ReconnectReason
impl ReconnectReason
pub const ROTATION: &'static str = "rotation"
pub const WATCHDOG: &'static str = "watchdog"
pub const CLOSED: &'static str = "closed"
pub const HANDSHAKE_FAILED: &'static str = "handshake_failed"
pub const SEARCH_FAILED: &'static str = "search_failed"
pub const DIAL_FAILED: &'static str = "dial_failed"
pub const DIAL_REFUSED: &'static str = "dial_refused"
pub const CONNECTION_LIMIT: &'static str = "connection_limit"
pub const RATE_LIMITED: &'static str = "rate_limited"
pub const QUOTA_EXCEEDED: &'static str = "quota_exceeded"
Trait Implementations§
Source§impl AsRef<str> for ReconnectReason
impl AsRef<str> for ReconnectReason
Source§impl Clone for ReconnectReason
impl Clone for ReconnectReason
Source§impl Debug for ReconnectReason
impl Debug for ReconnectReason
Source§impl<'de> Deserialize<'de> for ReconnectReason
impl<'de> Deserialize<'de> for ReconnectReason
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 ReconnectReason
impl Display for ReconnectReason
impl Eq for ReconnectReason
Source§impl From<&String> for ReconnectReason
impl From<&String> for ReconnectReason
Source§impl From<&str> for ReconnectReason
impl From<&str> for ReconnectReason
Source§impl From<ReconnectReason> for String
impl From<ReconnectReason> for String
Source§fn from(value: ReconnectReason) -> Self
fn from(value: ReconnectReason) -> Self
Converts to this type from the input type.
Source§impl From<String> for ReconnectReason
impl From<String> for ReconnectReason
Source§impl Hash for ReconnectReason
impl Hash for ReconnectReason
Source§impl PartialEq for ReconnectReason
impl PartialEq for ReconnectReason
Source§impl PartialEq<&str> for ReconnectReason
impl PartialEq<&str> for ReconnectReason
Source§impl PartialEq<ReconnectReason> for &str
impl PartialEq<ReconnectReason> for &str
Source§impl PartialEq<str> for ReconnectReason
impl PartialEq<str> for ReconnectReason
Auto Trait Implementations§
impl Forget for ReconnectReason
impl Freeze for ReconnectReason
impl Move for ReconnectReason
impl RefUnwindSafe for ReconnectReason
impl Send for ReconnectReasonwhere
RawVecInner: Send,
impl Sync for ReconnectReasonwhere
RawVecInner: Sync,
impl Unpin for ReconnectReason
impl UnsafeUnpin for ReconnectReason
impl UnwindSafe for ReconnectReasonwhere
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