pub struct ConnectionErrorDetails {
pub is_ssl_error: bool,
pub is_timeout: bool,
pub is_connection_refused: bool,
pub errno: Option<String>,
}Expand description
Extract connection error details from an error
Fields§
§is_ssl_error: bool§is_timeout: bool§is_connection_refused: bool§errno: Option<String>Trait Implementations§
Source§impl Clone for ConnectionErrorDetails
impl Clone for ConnectionErrorDetails
Source§fn clone(&self) -> ConnectionErrorDetails
fn clone(&self) -> ConnectionErrorDetails
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 ConnectionErrorDetails
impl Debug for ConnectionErrorDetails
Source§impl Default for ConnectionErrorDetails
impl Default for ConnectionErrorDetails
Source§fn default() -> ConnectionErrorDetails
fn default() -> ConnectionErrorDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectionErrorDetails
impl<'de> Deserialize<'de> for ConnectionErrorDetails
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
Auto Trait Implementations§
impl Freeze for ConnectionErrorDetails
impl RefUnwindSafe for ConnectionErrorDetails
impl Send for ConnectionErrorDetails
impl Sync for ConnectionErrorDetails
impl Unpin for ConnectionErrorDetails
impl UnsafeUnpin for ConnectionErrorDetails
impl UnwindSafe for ConnectionErrorDetails
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