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
Shutdown
The feed was shutdown (possibly a machine restart).
DuplicateStream
The same endpoint was connected too many times.
ControlRequest
Control streams was used to close a stream (applies to sitestreams).
Stall
The client was reading too slowly and was disconnected by the server.
Normal
The client appeared to have initiated a disconnect.
TokenRevoked
An oauth token was revoked for a user (applies to site and userstreams).
AdminLogout
The same credentials were used to connect a new stream and the oldest was disconnected.
MaxMessageLimit
The stream connected with a negative count parameter and was disconnected after all backfill was delivered.
StreamException
An internal issue disconnected the stream.
BrokerStall
An internal issue disconnected the stream.
ShedLoad
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]
fn clone(&self) -> DisconnectCode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DisconnectCode
[src]
impl Debug for DisconnectCode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for DisconnectCode
[src]
impl PartialEq for DisconnectCode
[src]
fn eq(&self, __arg_0: &DisconnectCode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Hash for DisconnectCode
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'x> Deserialize<'x> for DisconnectCode
[src]
fn deserialize<D: Deserializer<'x>>(d: D) -> Result<Self, D::Error>
[src]
Deserialize this value from the given Serde deserializer. Read more