Enum gloo_net::eventsource::State
source · pub enum State {
Connecting,
Open,
Closed,
}
Available on crate feature
eventsource
only.Expand description
The state of the EventSource.
See EventSource.readyState
on MDN
to learn more.
Variants§
Connecting
The connection has not yet been established.
Open
The EventSource connection is established and communication is possible.
Closed
The connection has been closed or could not be opened.
Trait Implementations§
source§impl Ord for State
impl Ord for State
source§impl PartialEq<State> for State
impl PartialEq<State> for State
source§impl PartialOrd<State> for State
impl PartialOrd<State> for State
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for State
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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