[−][src]Enum egg_mode::stream::StreamMessage
Represents the kinds of messages that can be sent over Twitter's Streaming API.
Variants
A blank line, sent periodically to keep the connection alive.
A list of accounts the authenticated user follows, sent at the beginning of the session for user streams.
Tweet(Tweet)A new tweet.
Note that the entities inside the user field will be empty for tweets received via the
Streaming API.
Notice given when a user deletes a post.
Clients are expected to comply with these notices by removing the status "from memory and any storage or archive, even in the rare case where a deletion message arrives earlier in the stream than the Tweet it references."
Fields of Delete
Notice given when a user removes geolocation information from their profile.
Clients are expected to comply by deleting cached geolocation information from tweets by the given user, for any tweets up to and including the given status ID. According to Twitter's documentation, "These messages may also arrive before a Tweet which falls into the specified range, although this is rare."
Fields of ScrubGeo
Placeholder message used to indicate that a specific tweet has been withheld in certain countries.
Fields of StatusWithheld
Placeholder message used to indicate that a specific user's content has been withheld in certain countries.
Fields of UserWithheld
An error message that may be delivered immediately prior to Twitter disconnecting the stream.
Note that if the stream is disconnected due to network issues or the client reading messages too slowly, it's possible that this message may not be received.
The enclosed values are an error code and error description. A non-exhaustive list of error codes and their associated reasons are available on Twitter's stream docmentation, under "Disconnect messages (disconnect)".
Unknown(Value)An unhandled message payload.
Twitter can add new streaming messages to the API, and egg-mode includes them here so that they can be used before egg-mode has a chance to handle them.
Trait Implementations
impl Debug for StreamMessage[src]
impl<'de> Deserialize<'de> for StreamMessage[src]
fn deserialize<D>(deser: D) -> Result<StreamMessage, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl FromStr for StreamMessage[src]
Auto Trait Implementations
impl RefUnwindSafe for StreamMessage
impl Send for StreamMessage
impl Sync for StreamMessage
impl Unpin for StreamMessage
impl UnwindSafe for StreamMessage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,