Enum fluvio_ws_stream_wasm::WsState [−][src]
pub enum WsState { Connecting, Open, Closing, Closed, }
Expand description
Indicates the state of a Websocket connection. The only state in which it’s valid to send and receive messages is WsState::Open.
See MDN for the ready state values.
Variants
Trait Implementations
impl TryFrom<u16> for WsState
[src]
impl TryFrom<u16> for WsState
[src]Internally ready state is a u16, so it’s possible to create one from a u16. Only 0-3 are valid values.
See MDN for the ready state values.
impl Copy for WsState
[src]
impl Eq for WsState
[src]
impl StructuralEq for WsState
[src]
impl StructuralPartialEq for WsState
[src]
Auto Trait Implementations
impl RefUnwindSafe for WsState
impl Send for WsState
impl Sync for WsState
impl Unpin for WsState
impl UnwindSafe for WsState
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