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: TransportErrorCodeClass of error as encoded in the specification
frame_type: Option<Type>Type of frame that caused the close
reason: BytesHuman-readable reason for the close
Trait Implementations
sourceimpl Clone for ConnectionClose
impl Clone for ConnectionClose
sourcefn clone(&self) -> ConnectionClose
fn clone(&self) -> ConnectionClose
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ConnectionClose
impl Debug for ConnectionClose
sourceimpl Display for ConnectionClose
impl Display for ConnectionClose
sourceimpl From<Error> for ConnectionClose
impl From<Error> for ConnectionClose
sourcefn from(x: TransportError) -> Self
fn from(x: TransportError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ConnectionClose> for ConnectionClose
impl PartialEq<ConnectionClose> for ConnectionClose
sourcefn eq(&self, other: &ConnectionClose) -> bool
fn eq(&self, other: &ConnectionClose) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more