pub enum ReadyState {
Connecting = 0,
Open = 1,
Closed = 2,
}Expand description
The connection state mapping to the JavaScript EventSource API readyState.
Variants§
Connecting = 0
The connection has not yet been established, or it was closed and the client is reconnecting.
Open = 1
The connection is open and ready to receive events.
Closed = 2
The connection is permanently closed and will not reconnect.
Trait Implementations§
Source§impl Clone for ReadyState
impl Clone for ReadyState
Source§fn clone(&self) -> ReadyState
fn clone(&self) -> ReadyState
Returns a duplicate 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 moreSource§impl Debug for ReadyState
impl Debug for ReadyState
Source§impl<'de> Deserialize<'de> for ReadyState
impl<'de> Deserialize<'de> for ReadyState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ReadyState
impl Hash for ReadyState
Source§impl PartialEq for ReadyState
impl PartialEq for ReadyState
Source§impl Serialize for ReadyState
impl Serialize for ReadyState
impl Copy for ReadyState
impl Eq for ReadyState
impl StructuralPartialEq for ReadyState
Auto Trait Implementations§
impl Freeze for ReadyState
impl RefUnwindSafe for ReadyState
impl Send for ReadyState
impl Sync for ReadyState
impl Unpin for ReadyState
impl UnsafeUnpin for ReadyState
impl UnwindSafe for ReadyState
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