Struct gloo_net::websocket::events::CloseEvent
source · 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 more