#[non_exhaustive]pub enum WireRxErrorKind {
ConnectionClosed,
ReceivedMessageTooLarge,
Other,
}
Expand description
The base WireRx
Error Kind
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.
ConnectionClosed
The connection has been closed, and is unlikely to succeed until the connection is re-established. This will cause the Server run loop to terminate.
ReceivedMessageTooLarge
The received message was too large for the server to handle
Other
Other message kinds
Trait Implementations§
Source§impl AsWireRxErrorKind for WireRxErrorKind
impl AsWireRxErrorKind for WireRxErrorKind
Source§fn as_kind(&self) -> WireRxErrorKind
fn as_kind(&self) -> WireRxErrorKind
Convert the error type into a base type
Source§impl Clone for WireRxErrorKind
impl Clone for WireRxErrorKind
Source§fn clone(&self) -> WireRxErrorKind
fn clone(&self) -> WireRxErrorKind
Returns a copy 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 WireRxErrorKind
impl Debug for WireRxErrorKind
impl Copy for WireRxErrorKind
Auto Trait Implementations§
impl Freeze for WireRxErrorKind
impl RefUnwindSafe for WireRxErrorKind
impl Send for WireRxErrorKind
impl Sync for WireRxErrorKind
impl Unpin for WireRxErrorKind
impl UnwindSafe for WireRxErrorKind
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