pub enum WebSocketErrorKind {
Transport,
Protocol,
Server,
}Expand description
表示 WebSocket 连接或协议错误。
Variants§
Trait Implementations§
Source§impl Clone for WebSocketErrorKind
impl Clone for WebSocketErrorKind
Source§fn clone(&self) -> WebSocketErrorKind
fn clone(&self) -> WebSocketErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebSocketErrorKind
impl Debug for WebSocketErrorKind
Source§impl<'de> Deserialize<'de> for WebSocketErrorKind
impl<'de> Deserialize<'de> for WebSocketErrorKind
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 PartialEq for WebSocketErrorKind
impl PartialEq for WebSocketErrorKind
Source§impl Serialize for WebSocketErrorKind
impl Serialize for WebSocketErrorKind
impl Copy for WebSocketErrorKind
impl Eq for WebSocketErrorKind
impl StructuralPartialEq for WebSocketErrorKind
Auto Trait Implementations§
impl Freeze for WebSocketErrorKind
impl RefUnwindSafe for WebSocketErrorKind
impl Send for WebSocketErrorKind
impl Sync for WebSocketErrorKind
impl Unpin for WebSocketErrorKind
impl UnsafeUnpin for WebSocketErrorKind
impl UnwindSafe for WebSocketErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.