pub struct MockMediaAsset(/* private fields */);Expand description
An asset the app opened, as the test sees it. Every clone is the same asset.
Implementations§
Source§impl MockMediaAsset
impl MockMediaAsset
Sourcepub fn frames_asked(&self) -> Vec<FrameAsked>
pub fn frames_asked(&self) -> Vec<FrameAsked>
The pictures asked of it, in order.
Sourcepub fn is_dropped(&self) -> bool
pub fn is_dropped(&self) -> bool
Whether the app let go of the asset.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MockMediaAsset
impl !Send for MockMediaAsset
impl !Sync for MockMediaAsset
impl !UnwindSafe for MockMediaAsset
impl Forget for MockMediaAsset
impl Freeze for MockMediaAsset
impl Move for MockMediaAsset
impl Unpin for MockMediaAsset
impl UnsafeUnpin for MockMediaAssetwhere
*const RcInner<AssetShared> is !null: UnsafeUnpin,
PhantomData<RcInner<AssetShared>>: UnsafeUnpin,
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