pub struct AssetAnswers {
pub duration: Result<Option<Duration>, PlayerError>,
pub tracks: Result<Vec<MediaTrack>, PlayerError>,
pub metadata: Result<MediaMetadata, PlayerError>,
pub frame_size: Result<Size, PlayerError>,
}Expand description
What every asset answers: its length, None for a live stream, its tracks, its tags, and the
size of its pictures, each or a failure.
Fields§
§duration: Result<Option<Duration>, PlayerError>§tracks: Result<Vec<MediaTrack>, PlayerError>§metadata: Result<MediaMetadata, PlayerError>§frame_size: Result<Size, PlayerError>The size of each picture, which answers a MockVideoFrame of it.
Trait Implementations§
Source§impl Clone for AssetAnswers
impl Clone for AssetAnswers
Source§impl Debug for AssetAnswers
impl Debug for AssetAnswers
Source§impl PartialEq for AssetAnswers
impl PartialEq for AssetAnswers
impl StructuralPartialEq for AssetAnswers
Auto Trait Implementations§
impl Forget for AssetAnswers
impl Freeze for AssetAnswerswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MediaTrack>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
impl Move for AssetAnswers
impl RefUnwindSafe for AssetAnswers
impl Send for AssetAnswers
impl Sync for AssetAnswers
impl Unpin for AssetAnswers
impl UnsafeUnpin for AssetAnswerswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MediaTrack>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
impl UnwindSafe for AssetAnswers
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