pub struct ApplicationClose {
pub error_code: VarInt,
pub reason: Bytes,
}展开描述
应用层给出的关闭连接的原因
字段§
§error_code: VarInt应用层专用的原因码
reason: Bytes人类可读的关闭原因
trait 实现§
源代码§impl Clone for ApplicationClose
impl Clone for ApplicationClose
源代码§fn clone(&self) -> ApplicationClose
fn clone(&self) -> ApplicationClose
返回值的副本。 更多信息
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 更多信息源代码§impl Debug for ApplicationClose
impl Debug for ApplicationClose
源代码§impl Display for ApplicationClose
impl Display for ApplicationClose
源代码§impl PartialEq for ApplicationClose
impl PartialEq for ApplicationClose
impl Eq for ApplicationClose
impl StructuralPartialEq for ApplicationClose
自动 trait 实现§
impl !Freeze for ApplicationClose
impl RefUnwindSafe for ApplicationClose
impl Send for ApplicationClose
impl Sync for ApplicationClose
impl Unpin for ApplicationClose
impl UnsafeUnpin for ApplicationClose
impl UnwindSafe for ApplicationClose
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息