pub struct ConnectionCloseDetails {
pub timed_out: bool,
/* private fields */
}
Expand description
Denotes why the connection was closed.
Fields§
§timed_out: bool
If the connection timed out.
Implementations§
Source§impl ConnectionCloseDetails
impl ConnectionCloseDetails
pub fn new(qconn: &Connection) -> Self
Sourcepub fn peer_error(&self) -> Option<&ConnectionError>
pub fn peer_error(&self) -> Option<&ConnectionError>
The error sent from the peer, if any.
Sourcepub fn local_error(&self) -> Option<&ConnectionError>
pub fn local_error(&self) -> Option<&ConnectionError>
The error generated locally, if any.
Trait Implementations§
Source§impl Debug for ConnectionCloseDetails
impl Debug for ConnectionCloseDetails
Source§impl Default for ConnectionCloseDetails
impl Default for ConnectionCloseDetails
Source§fn default() -> ConnectionCloseDetails
fn default() -> ConnectionCloseDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionCloseDetails
impl RefUnwindSafe for ConnectionCloseDetails
impl Send for ConnectionCloseDetails
impl Sync for ConnectionCloseDetails
impl Unpin for ConnectionCloseDetails
impl UnwindSafe for ConnectionCloseDetails
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more