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.
Source§impl PartialEq for ConnectionClose
impl PartialEq for ConnectionClose
impl Eq for ConnectionClose
impl StructuralPartialEq for ConnectionClose
Auto Trait Implementations§
impl !Freeze for ConnectionClose
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)