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 PartialOrd for State
impl PartialOrd for State
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
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