pub struct ApplicationClose {
pub error_code: VarInt,
pub reason: Bytes,
}
Expand description
Reason given by an application for closing the connection
Fields§
§error_code: VarInt
Application-specific reason code
reason: Bytes
Human-readable reason for the close
Trait Implementations§
Source§impl Clone for ApplicationClose
impl Clone for ApplicationClose
Source§fn clone(&self) -> ApplicationClose
fn clone(&self) -> ApplicationClose
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 ApplicationClose
impl Debug for ApplicationClose
Source§impl Display for ApplicationClose
impl Display for ApplicationClose
Source§impl PartialEq for ApplicationClose
impl PartialEq for ApplicationClose
impl Eq for ApplicationClose
impl StructuralPartialEq for ApplicationClose
Auto Trait Implementations§
impl !Freeze for ApplicationClose
impl RefUnwindSafe for ApplicationClose
impl Send for ApplicationClose
impl Sync for ApplicationClose
impl Unpin for ApplicationClose
impl UnwindSafe for ApplicationClose
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
)