Struct gloo_net::websocket::events::CloseEvent
source · pub struct CloseEvent {
pub code: u16,
pub reason: String,
pub was_clean: bool,
}
Available on crate feature
websocket
only.Expand description
Data emitted by onclose
event
Fields§
§code: u16
Close code
reason: String
Close reason
was_clean: bool
If the websockets was closed cleanly
Trait Implementations§
source§impl Clone for CloseEvent
impl Clone for CloseEvent
source§fn clone(&self) -> CloseEvent
fn clone(&self) -> CloseEvent
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 moreAuto Trait Implementations§
impl RefUnwindSafe for CloseEvent
impl Send for CloseEvent
impl Sync for CloseEvent
impl Unpin for CloseEvent
impl UnwindSafe for CloseEvent
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