Struct quinn_proto::ConnectionClose
source · pub struct ConnectionClose {
pub error_code: TransportErrorCode,
pub frame_type: Option<Type>,
pub reason: Bytes,
}
Expand description
Reason given by the transport for closing the connection
Fields§
§error_code: TransportErrorCode
Class of error as encoded in the specification
frame_type: Option<Type>
Type of frame that caused the close
reason: Bytes
Human-readable reason for the close
Trait Implementations§
source§impl Clone for ConnectionClose
impl Clone for ConnectionClose
source§fn clone(&self) -> ConnectionClose
fn clone(&self) -> ConnectionClose
Returns a copy 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 ConnectionClose
impl Debug for ConnectionClose
source§impl Display for ConnectionClose
impl Display for ConnectionClose
source§impl From<Error> for ConnectionClose
impl From<Error> for ConnectionClose
source§fn from(x: TransportError) -> Self
fn from(x: TransportError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ConnectionClose
impl PartialEq for ConnectionClose
source§fn eq(&self, other: &ConnectionClose) -> bool
fn eq(&self, other: &ConnectionClose) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConnectionClose
impl StructuralEq for ConnectionClose
impl StructuralPartialEq for ConnectionClose
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionClose
impl Send for ConnectionClose
impl Sync for ConnectionClose
impl Unpin for ConnectionClose
impl UnwindSafe for ConnectionClose
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