Struct quinn::ConnectionClose
source · pub struct ConnectionClose {
pub error_code: Code,
pub frame_type: Option<Type>,
pub reason: Bytes,
}
Expand description
Reason given by the transport for closing the connection
Fields§
§error_code: Code
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: Error) -> ConnectionClose
fn from(x: Error) -> ConnectionClose
Converts to this type from the input type.