pub struct ConnectionError { /* private fields */ }Expand description
Connection error with optional backtrace
Implementations§
Source§impl ConnectionError
impl ConnectionError
Sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Check if this is a timeout error
Sourcepub fn is_refused(&self) -> bool
pub fn is_refused(&self) -> bool
Check if connection was refused
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
impl UnwindSafe for ConnectionError
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