pub enum TransportErrorKind {
ConnectionRefused {
host: String,
port: u16,
},
ConnectionTimeout {
host: String,
port: u16,
},
ProtocolError {
message: String,
},
NetworkError {
message: String,
},
}Variants§
Trait Implementations§
Source§impl Clone for TransportErrorKind
impl Clone for TransportErrorKind
Source§fn clone(&self) -> TransportErrorKind
fn clone(&self) -> TransportErrorKind
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 TransportErrorKind
impl Debug for TransportErrorKind
Source§impl<'de> Deserialize<'de> for TransportErrorKind
impl<'de> Deserialize<'de> for TransportErrorKind
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 TransportErrorKind
impl Display for TransportErrorKind
Auto Trait Implementations§
impl Freeze for TransportErrorKind
impl RefUnwindSafe for TransportErrorKind
impl Send for TransportErrorKind
impl Sync for TransportErrorKind
impl Unpin for TransportErrorKind
impl UnsafeUnpin for TransportErrorKind
impl UnwindSafe for TransportErrorKind
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