#[non_exhaustive]pub enum Action {
FetchMpd {
url: String,
validators: MpdValidators,
},
FetchUtcTiming {
id: UtcId,
scheme: UtcScheme,
url: String,
method: UtcMethod,
},
FetchInit {
id: ResourceId,
url: String,
byte_range: Option<(u64, u64)>,
},
FetchIndex {
id: ResourceId,
url: String,
byte_range: Option<(u64, u64)>,
},
FetchSegment {
id: ResourceId,
url: String,
byte_range: Option<(u64, u64)>,
},
}Expand description
One unit of I/O the caller performs.
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.
FetchMpd
GET the MPD (conditional when validators are set). A 304 is
reported with super::DashClient::on_mpd_unchanged.
Fields
§
url: StringThe MPD URL: the first Location, else the redirect target, else
the original (23009-1 A.11).
§
validators: MpdValidatorsValidators of the MPD held now.
FetchUtcTiming
Fetch the time from a UTCTiming server (23009-1 5.8.5.7). Report with
super::DashClient::on_utc_response or
super::DashClient::on_utc_failure. Carry no credentials: the server
is chosen by the MPD.
Fields
FetchInit
GET an Initialization Segment.
Fields
§
id: ResourceIdCorrelates super::DashClient::on_init.
FetchIndex
GET a sidx (SegmentBase index).
Fields
§
id: ResourceIdCorrelates super::DashClient::on_index.
FetchSegment
GET a Media Segment.
Fields
§
id: ResourceIdCorrelates super::DashClient::on_segment.
Implementations§
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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