#[non_exhaustive]pub enum WireTxErrorKind {
ConnectionClosed,
Other,
Timeout,
}Expand description
The base WireTx 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.
Other
Other unspecified errors
Timeout
Timeout (WireTx impl specific) reached
Trait Implementations§
Source§impl AsWireTxErrorKind for WireTxErrorKind
impl AsWireTxErrorKind for WireTxErrorKind
Source§fn as_kind(&self) -> WireTxErrorKind
fn as_kind(&self) -> WireTxErrorKind
Convert the error type into a base type
Source§impl Clone for WireTxErrorKind
impl Clone for WireTxErrorKind
Source§fn clone(&self) -> WireTxErrorKind
fn clone(&self) -> WireTxErrorKind
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 WireTxErrorKind
impl Debug for WireTxErrorKind
Source§impl Display for WireTxErrorKind
impl Display for WireTxErrorKind
Source§impl Error for WireTxErrorKind
impl Error for WireTxErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for WireTxErrorKind
Auto Trait Implementations§
impl Freeze for WireTxErrorKind
impl RefUnwindSafe for WireTxErrorKind
impl Send for WireTxErrorKind
impl Sync for WireTxErrorKind
impl Unpin for WireTxErrorKind
impl UnwindSafe for WireTxErrorKind
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