#[non_exhaustive]pub enum HttpInputError {
Show 28 variants
InvalidUrl {
reason: &'static str,
},
UserinfoForbidden,
ManifestUnsupported {
kind: ManifestKind,
},
NestedResourceUnsupported,
UnsupportedContentEncoding,
Status {
code: u16,
},
AuthenticationRequired,
AccessDenied,
ProxyAuthenticationRequired,
NotFound,
Timeout,
ReadIdleTimeout,
TlsVerification,
RangeNotSatisfiable,
RangeIgnored,
ResourceChanged,
TooManyRedirects,
HttpsDowngrade,
HeaderReserved {
name: String,
},
HeaderInvalid {
name: String,
},
NoTrustAnchors,
InvalidCertificate,
IdentityInvalid,
InvalidProxy,
InvalidTimeout,
Transport {
message: String,
},
Interrupted,
TruncatedBody,
}Expand description
Failure from building or opening an crate::http_input::HttpInput.
This type is boxed into crate::error::Error::HttpInput so the crate
Error layout stays within 64 bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidUrl
The URL is not a usable http:// or https:// resource.
UserinfoForbidden
Userinfo in the URL is rejected; use the Authorization header API.
ManifestUnsupported
HLS / DASH (or another nested-resource format) is out of v1 scope.
Fields
kind: ManifestKindWhich manifest family was detected.
NestedResourceUnsupported
The demuxer asked to open a second resource.
UnsupportedContentEncoding
Server compressed the entity body; Range offsets would not match.
Status
HTTP status that does not have a more specific variant.
AuthenticationRequired
HTTP 401.
AccessDenied
HTTP 403.
ProxyAuthenticationRequired
HTTP 407.
NotFound
HTTP 404 / 410.
Timeout
Connect / response-header deadline.
ReadIdleTimeout
No body bytes arrived within the idle window.
TlsVerification
rustls rejected the certificate or hostname.
RangeNotSatisfiable
Range request could not be satisfied.
RangeIgnored
Non-zero Range was ignored (server returned 200 for a mid-resource seek).
ResourceChanged
ETag / Last-Modified / size changed across Range or reconnect.
TooManyRedirects
Redirect loop or hop limit.
HttpsDowngrade
HTTPS followed by an http:// Location.
HeaderReserved
Caller tried to set a hop-by-hop or transport header the crate owns.
HeaderInvalid
Header name or value failed HTTP validation.
NoTrustAnchors
System / custom trust store produced no usable anchors.
InvalidCertificate
PEM did not contain a certificate.
IdentityInvalid
PEM identity was missing a cert chain or an unencrypted private key.
InvalidProxy
Proxy URL or credentials were unusable.
InvalidTimeout
Timeout builder rejected a zero duration.
Transport
Transport / DNS / connection failure (message has no secrets).
Interrupted
Scheduler stop / abort observed on the AVIO poll tick.
TruncatedBody
Socket EOF arrived before the declared Content-Length or Content-Range total.
Trait Implementations§
Source§impl Clone for HttpInputError
impl Clone for HttpInputError
Source§fn clone(&self) -> HttpInputError
fn clone(&self) -> HttpInputError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HttpInputError
impl Debug for HttpInputError
Source§impl Display for HttpInputError
impl Display for HttpInputError
Source§impl Error for HttpInputError
impl Error for HttpInputError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<HttpInputError> for Error
Available on crate feature http-input only.
impl From<HttpInputError> for Error
http-input only.