pub struct PreloadHint {
pub hint_type: PreloadHintType,
pub uri: String,
pub start_byte_offset: u64,
pub length_in_bytes: Option<u64>,
}Expand description
A hint that the client should request a resource before it is available to be delivered.
Fields§
§hint_type: PreloadHintTypeWhether the resource is a PartialSegment or a MediaInitializationSection.
uri: StringThe URI to the hinted resource.
start_byte_offset: u64The byte offset of the first byte of the hinted resource, from the beginning of the resource identified by the URI.
length_in_bytes: Option<u64>If Some, the value is the length of the hinted resource. If None, the last byte of the hinted resource is the last byte of the resource identified by the URI.
Trait Implementations§
Source§impl Clone for PreloadHint
impl Clone for PreloadHint
Source§fn clone(&self) -> PreloadHint
fn clone(&self) -> PreloadHint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreloadHint
impl Debug for PreloadHint
Source§impl PartialEq for PreloadHint
impl PartialEq for PreloadHint
impl Eq for PreloadHint
impl StructuralPartialEq for PreloadHint
Auto Trait Implementations§
impl Freeze for PreloadHint
impl RefUnwindSafe for PreloadHint
impl Send for PreloadHint
impl Sync for PreloadHint
impl Unpin for PreloadHint
impl UnwindSafe for PreloadHint
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