Enum twitter_stream_message::message::DisconnectCode [] [src]

pub enum DisconnectCode {
    Shutdown,
    DuplicateStream,
    ControlRequest,
    Stall,
    Normal,
    TokenRevoked,
    AdminLogout,
    MaxMessageLimit,
    StreamException,
    BrokerStall,
    ShedLoad,
}

Status code for a Disconnect message.

Variants

The feed was shutdown (possibly a machine restart).

The same endpoint was connected too many times.

Control streams was used to close a stream (applies to sitestreams).

The client was reading too slowly and was disconnected by the server.

The client appeared to have initiated a disconnect.

An oauth token was revoked for a user (applies to site and userstreams).

The same credentials were used to connect a new stream and the oldest was disconnected.

The stream connected with a negative count parameter and was disconnected after all backfill was delivered.

An internal issue disconnected the stream.

An internal issue disconnected the stream.

The host the stream was connected to became overloaded and streams were disconnected to balance load. Reconnect as usual.

Trait Implementations

impl Clone for DisconnectCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for DisconnectCode
[src]

impl Debug for DisconnectCode
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for DisconnectCode
[src]

impl PartialEq for DisconnectCode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Hash for DisconnectCode
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'x> Deserialize<'x> for DisconnectCode
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl AsRef<str> for DisconnectCode
[src]

[src]

Performs the conversion.

Auto Trait Implementations