Enum reqwest_eventsource::ReadyState
source · #[repr(u8)]pub enum ReadyState {
Connecting = 0,
Open = 1,
Closed = 2,
}
Expand description
The ready state of an EventSource
Variants§
Connecting = 0
The EventSource is waiting on a response from the endpoint
Open = 1
The EventSource is connected
Closed = 2
The EventSource is closed and no longer emitting Events
Trait Implementations§
source§impl Clone for ReadyState
impl Clone for ReadyState
source§fn clone(&self) -> ReadyState
fn clone(&self) -> ReadyState
Returns a copy 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 Ord for ReadyState
impl Ord for ReadyState
source§fn cmp(&self, other: &ReadyState) -> Ordering
fn cmp(&self, other: &ReadyState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ReadyState
impl PartialEq for ReadyState
source§fn eq(&self, other: &ReadyState) -> bool
fn eq(&self, other: &ReadyState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReadyState
impl PartialOrd for ReadyState
source§fn partial_cmp(&self, other: &ReadyState) -> Option<Ordering>
fn partial_cmp(&self, other: &ReadyState) -> Option<Ordering>
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 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 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