Struct fluvio_ws_stream_wasm::CloseEvent [−][src]
Expand description
An event holding information about how/why the connection was closed.
Fields
code: u16
The close code. See: MDN Documentation.
reason: String
The reason why the connection was closed. See: MDN Documentation.
was_clean: bool
Whether the connection was closed cleanly. See: MDN Documentation.
Trait Implementations
impl Clone for CloseEvent
[src]
impl Clone for CloseEvent
[src]fn clone(&self) -> CloseEvent
[src]
fn clone(&self) -> CloseEvent
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CloseEvent
[src]
impl Debug for CloseEvent
[src]impl From<CloseEvent> for CloseEvent
[src]
impl From<CloseEvent> for CloseEvent
[src]fn from(js_evt: JsCloseEvt) -> Self
[src]
fn from(js_evt: JsCloseEvt) -> Self
[src]Performs the conversion.
impl PartialEq<CloseEvent> for CloseEvent
[src]
impl PartialEq<CloseEvent> for CloseEvent
[src]fn eq(&self, other: &CloseEvent) -> bool
[src]
fn eq(&self, other: &CloseEvent) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CloseEvent) -> bool
[src]
fn ne(&self, other: &CloseEvent) -> bool
[src]This method tests for !=
.
impl Eq for CloseEvent
[src]
impl StructuralEq for CloseEvent
[src]
impl StructuralPartialEq for CloseEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for CloseEvent
impl Send for CloseEvent
impl Sync for CloseEvent
impl Unpin for CloseEvent
impl UnwindSafe for CloseEvent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more