#[non_exhaustive]pub enum TokioError {
Http {
url: String,
source: Error,
},
Status {
url: String,
status: StatusCode,
},
Client(Error),
Auth(Error),
}Available on crate feature
tokio only.Expand description
Errors from the tokio IO adapter itself — distinct from
crate::client::Error, the sans-IO core’s own parse/demux error type
(wrapped here via
TokioError::Client).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Http
The underlying HTTP request failed outright (connect/timeout/TLS/
transport error) — never a non-2xx response, see Self::Status.
Status
The server returned a non-success HTTP status.
Client(Error)
The sans-IO core rejected the fetched playlist/resource — see
crate::client::Error for the underlying reason.
Auth(Error)
A 401’s WWW-Authenticate challenge could not be parsed, or no
Authorization response could be computed from it (e.g. an
unsupported Digest algorithm/qop) — see broadcast_auth::Error.
Trait Implementations§
Source§impl Debug for TokioError
impl Debug for TokioError
Source§impl Display for TokioError
impl Display for TokioError
Source§impl Error for TokioError
impl Error for TokioError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for TokioError
impl From<Error> for TokioError
Auto Trait Implementations§
impl !RefUnwindSafe for TokioError
impl !UnwindSafe for TokioError
impl Freeze for TokioError
impl Send for TokioError
impl Sync for TokioError
impl Unpin for TokioError
impl UnsafeUnpin for TokioError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more