#[non_exhaustive]pub struct Fetch {
pub priority: u8,
pub frame_start: u64,
}Expand description
Options for a one-shot track::Consumer::fetch_group of a past group.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.priority: u8Delivery priority for the fetched group’s stream. Defaults to 0.
frame_start: u64Index of the first frame to fetch within the group. Defaults to 0, the whole group.
Use this to fill a hole left by a route change: the group’s head is already cached locally and only the tail is missing.
There is no matching end: a fetch always runs to the end of the group, and a
caller wanting less caps the returned consumer with Consumer::set_frames. Stopping
the fetch short would put a group in the cache that is indistinguishable from a
complete one, so a later fetch of the whole group would resolve from it and come
up short.
Implementations§
Source§impl Fetch
impl Fetch
Sourcepub fn with_priority(self, priority: u8) -> Self
pub fn with_priority(self, priority: u8) -> Self
Set the delivery priority, returning self for chaining.
Sourcepub fn with_frame_start(self, frame_start: u64) -> Self
pub fn with_frame_start(self, frame_start: u64) -> Self
Set the first frame to fetch, returning self for chaining.