[][src]Enum surf_sse::ReadyState

pub enum ReadyState {
    Connecting,
    Open,
}

The state of the connection.

Unlike browser implementations of the EventSource API, this does not have a Closed value, because the stream is closed by dropping the struct. At that point, there's no way to inspect the state anyway.

A Closed value may be added in the future when there is more robust error handling in place.

Variants

Connecting

The client is connecting. It may have sent a request already, or be waiting for a retry timer.

Open

The connection is open and ready to read messages.

Trait Implementations

impl Clone for ReadyState[src]

impl Copy for ReadyState[src]

impl Debug for ReadyState[src]

impl Eq for ReadyState[src]

impl PartialEq<ReadyState> for ReadyState[src]

impl StructuralEq for ReadyState[src]

impl StructuralPartialEq for ReadyState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]