Enum twitter_stream::message::DisconnectCode
[−]
[src]
pub enum DisconnectCode {
Shutdown,
DuplicateStream,
ControlRequest,
Stall,
Normal,
TokenRevoked,
AdminLogout,
MaxMessageLimit,
StreamException,
BrokerStall,
ShedLoad,
}Status code for a Disconnect message.
Variants
ShutdownThe feed was shutdown (possibly a machine restart).
DuplicateStreamThe same endpoint was connected too many times.
ControlRequestControl streams was used to close a stream (applies to sitestreams).
StallThe client was reading too slowly and was disconnected by the server.
NormalThe client appeared to have initiated a disconnect.
TokenRevokedAn oauth token was revoked for a user (applies to site and userstreams).
AdminLogoutThe same credentials were used to connect a new stream and the oldest was disconnected.
MaxMessageLimitThe stream connected with a negative count parameter and was disconnected after all backfill was delivered.
StreamExceptionAn internal issue disconnected the stream.
BrokerStallAn internal issue disconnected the stream.
ShedLoadThe 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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for DisconnectCode[src]
impl Debug for DisconnectCode[src]
impl Eq for DisconnectCode[src]
impl PartialEq for DisconnectCode[src]
fn eq(&self, __arg_0: &DisconnectCode) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for DisconnectCode[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Deserialize for DisconnectCode[src]
fn deserialize<D: Deserializer>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more