Enum twitter_stream::error::Error
[−]
[src]
pub enum Error { Http(StatusCode), Hyper(HyperError), TimedOut, Tls(TlsError), Utf8(Utf8Error), Custom(Box<Error + Send + Sync>), }
An error occurred while trying to connect to a Stream.
Variants
Http(StatusCode)
An HTTP error from the Stream.
Hyper(HyperError)
An error from the hyper
crate.
TimedOut
The stream has timed out.
Tls(TlsError)
An error occured when initializing a TLS client.
Utf8(Utf8Error)
Twitter returned a non-UTF-8 string.
Custom(Box<Error + Send + Sync>)
User-defined error.
Methods
impl Error
[src]
Trait Implementations
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more