#[non_exhaustive]pub enum Error {
UnrequestedResource {
id: ResourceId,
},
DuplicateResource {
id: ResourceId,
},
MpdNotAwaited,
Mpd(MpdError),
UnrequestedUtc {
id: UtcId,
},
Rejected {
id: ResourceId,
reason: Rejection,
class: FailureClass,
},
Stopped,
NoSuchVariant,
NoSuchAudio,
NotSwitchable,
}Expand description
Errors returned by the client’s on_* and select_* calls.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnrequestedResource
A resource was delivered for an id the client did not request, or one it no longer waits for.
Fields
id: ResourceIdThe id.
DuplicateResource
A second delivery of a resource already accepted.
Fields
id: ResourceIdThe id.
MpdNotAwaited
The MPD was not requested, or already accepted.
Mpd(MpdError)
The MPD bytes were rejected; request it again with
super::DashClient::retry_mpd.
UnrequestedUtc
A UTCTiming answer for a request the client does not wait for
(answered twice, abandoned after its timeout, or never made).
Rejected
A body was rejected and counted as a failure; class says what to do.
Stopped
The presentation has ended or failed; everything is ignored.
NoSuchVariant
super::DashClient::select_representation with an index outside the
current variant list.
NoSuchAudio
super::DashClient::select_audio with an index outside the current
audio list.
NotSwitchable
A switch is only possible while the Period being played is the one being fetched.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()