pub enum CloseCode {
ClientClose,
ServerClose,
NormalClosure,
GoingAway,
ProtocolError,
Other,
None,
}
Variants§
ClientClose
客户端主动关闭
ServerClose
服务端主动关闭
NormalClosure
正常关闭
GoingAway
ProtocolError
协议错误
Other
其它错误
None
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseCode
impl RefUnwindSafe for CloseCode
impl Send for CloseCode
impl Sync for CloseCode
impl Unpin for CloseCode
impl UnwindSafe for CloseCode
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