#[non_exhaustive]pub enum ConnectionErrorCode {
PingOnDefaultRoute,
HandshakeFailed,
ValidationFailed,
SearchFailed,
InternalError,
Other(String),
}Expand description
code of a connection.error 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.
PingOnDefaultRoute
PING_ON_DEFAULT_ROUTE
HandshakeFailed
HANDSHAKE_FAILED
ValidationFailed
VALIDATION_FAILED
SearchFailed
SEARCH_FAILED
InternalError
INTERNAL_ERROR
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Source§impl ConnectionErrorCode
impl ConnectionErrorCode
pub const PING_ON_DEFAULT_ROUTE: &'static str = "PING_ON_DEFAULT_ROUTE"
pub const HANDSHAKE_FAILED: &'static str = "HANDSHAKE_FAILED"
pub const VALIDATION_FAILED: &'static str = "VALIDATION_FAILED"
pub const SEARCH_FAILED: &'static str = "SEARCH_FAILED"
pub const INTERNAL_ERROR: &'static str = "INTERNAL_ERROR"
Trait Implementations§
Source§impl AsRef<str> for ConnectionErrorCode
impl AsRef<str> for ConnectionErrorCode
Source§impl Clone for ConnectionErrorCode
impl Clone for ConnectionErrorCode
Source§impl Debug for ConnectionErrorCode
impl Debug for ConnectionErrorCode
Source§impl<'de> Deserialize<'de> for ConnectionErrorCode
impl<'de> Deserialize<'de> for ConnectionErrorCode
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 ConnectionErrorCode
impl Display for ConnectionErrorCode
impl Eq for ConnectionErrorCode
Source§impl From<&String> for ConnectionErrorCode
impl From<&String> for ConnectionErrorCode
Source§impl From<&str> for ConnectionErrorCode
impl From<&str> for ConnectionErrorCode
Source§impl From<ConnectionErrorCode> for String
impl From<ConnectionErrorCode> for String
Source§fn from(value: ConnectionErrorCode) -> Self
fn from(value: ConnectionErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<String> for ConnectionErrorCode
impl From<String> for ConnectionErrorCode
Source§impl Hash for ConnectionErrorCode
impl Hash for ConnectionErrorCode
Source§impl PartialEq for ConnectionErrorCode
impl PartialEq for ConnectionErrorCode
Source§impl PartialEq<&str> for ConnectionErrorCode
impl PartialEq<&str> for ConnectionErrorCode
Source§impl PartialEq<ConnectionErrorCode> for &str
impl PartialEq<ConnectionErrorCode> for &str
Source§impl PartialEq<str> for ConnectionErrorCode
impl PartialEq<str> for ConnectionErrorCode
Auto Trait Implementations§
impl Forget for ConnectionErrorCode
impl Freeze for ConnectionErrorCode
impl Move for ConnectionErrorCode
impl RefUnwindSafe for ConnectionErrorCode
impl Send for ConnectionErrorCodewhere
RawVecInner: Send,
impl Sync for ConnectionErrorCodewhere
RawVecInner: Sync,
impl Unpin for ConnectionErrorCode
impl UnsafeUnpin for ConnectionErrorCode
impl UnwindSafe for ConnectionErrorCodewhere
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