Enum twitter_stream::Error
[−]
[src]
pub enum Error {
Url(ParseError),
Hyper(Error),
Http(StatusCode),
Io(Error),
TimedOut(u64),
Json(JsonError),
Disconnect(Disconnect),
}An error occurred while connecting to the Stream API.
Variants
Url(ParseError)An invalid url was passed to TwitterStreamBuilder::custom method.
Hyper(Error)An error from the hyper crate.
Http(StatusCode)An HTTP error from the Stream.
Io(Error)An I/O error.
TimedOut(u64)The Stream has timed out.
Json(JsonError)Failed to parse a JSON message from Stream API.
Disconnect(Disconnect)The Stream has been disconnected by the server.
Trait Implementations
impl Debug for Error[src]
impl StdError for Error[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl Display for Error[src]
impl From<ParseError> for Error[src]
fn from(e: ParseError) -> Self
Performs the conversion.
impl From<Error> for Error[src]
impl From<StatusCode> for Error[src]
fn from(e: StatusCode) -> Self
Performs the conversion.