pub struct ConnectionClose {
pub error_code: Code,
pub frame_type: Option<FrameType>,
pub reason: Bytes,
}展开描述
传输层给出的关闭连接的原因
字段§
§error_code: Code规范中编码的“错误类别”
frame_type: Option<FrameType>导致关闭的帧的类型
reason: Bytes关闭的人类可读原因
trait 实现§
源代码§impl Clone for ConnectionClose
impl Clone for ConnectionClose
源代码§fn clone(&self) -> ConnectionClose
fn clone(&self) -> ConnectionClose
返回值的副本。 更多信息
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 ConnectionClose
impl Debug for ConnectionClose
源代码§impl Display for ConnectionClose
impl Display for ConnectionClose
源代码§impl From<Error> for ConnectionClose
impl From<Error> for ConnectionClose
源代码§fn from(x: Error) -> ConnectionClose
fn from(x: Error) -> ConnectionClose
从输入类型转换为此类型。
源代码§impl PartialEq for ConnectionClose
impl PartialEq for ConnectionClose
impl Eq for ConnectionClose
impl StructuralPartialEq for ConnectionClose
自动 trait 实现§
impl !Freeze for ConnectionClose
impl RefUnwindSafe for ConnectionClose
impl Send for ConnectionClose
impl Sync for ConnectionClose
impl Unpin for ConnectionClose
impl UnsafeUnpin for ConnectionClose
impl UnwindSafe for ConnectionClose
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. 更多信息