Enum twitter_stream::error::Error
[−]
[src]
pub enum Error { Gzip(Error), Http(StatusCode), Hyper(HyperError), Url(UrlError), Tls(TlsError), }
An error occurred while trying to connect to a Stream.
Variants
Gzip(Error)
An error occured while parsing the gzip header of the response from the server.
Http(StatusCode)
An HTTP error from the Stream.
Hyper(HyperError)
An error from the hyper
crate.
Url(UrlError)
An invalid url was passed to TwitterStreamBuilder::custom
method.
Tls(TlsError)
An error occured when initializing a TLS client.
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<StatusCode> for Error
[src]
fn from(e: StatusCode) -> Self
Performs the conversion.
impl From<TlsError> for Error
[src]
impl From<UrlError> for Error
[src]
impl From<HyperError> for Error
[src]
fn from(e: HyperError) -> Self
Performs the conversion.