pub struct CloseData {
pub status_code: u16,
pub reason: String,
}
Expand description
Represents data contained in a Close message
Fields§
§status_code: u16
The status-code of the CloseData
reason: String
The reason-phrase of the CloseData
Implementations§
Trait Implementations§
source§impl PartialEq for CloseData
impl PartialEq for CloseData
impl Eq for CloseData
impl StructuralPartialEq for CloseData
Auto Trait Implementations§
impl Freeze for CloseData
impl RefUnwindSafe for CloseData
impl Send for CloseData
impl Sync for CloseData
impl Unpin for CloseData
impl UnwindSafe for CloseData
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