pub struct MockCaptionSettings(/* private fields */);Expand description
Caption settings that answer the style the test gives, telling the app each time the test changes it. Every clone is the same settings.
Implementations§
Source§impl MockCaptionSettings
impl MockCaptionSettings
Sourcepub fn new(style: CaptionStyle) -> MockCaptionSettings
pub fn new(style: CaptionStyle) -> MockCaptionSettings
Settings answering style.
Sourcepub fn set_style(&self, style: CaptionStyle)
pub fn set_style(&self, style: CaptionStyle)
Answers style from now on, telling the app, as the system would once the user changed a
setting.
Trait Implementations§
Source§impl CaptionSettings for MockCaptionSettings
impl CaptionSettings for MockCaptionSettings
Source§fn style(&self) -> CaptionStyle
fn style(&self) -> CaptionStyle
The style the user set, each setting saying whether it applies always or only where the
media says nothing.
Source§fn changed(&self) -> MediaChangeFuture
fn changed(&self) -> MediaChangeFuture
Resolves at the next change of the style, as a player’s
changed() does.Auto Trait Implementations§
impl !RefUnwindSafe for MockCaptionSettings
impl !Send for MockCaptionSettings
impl !Sync for MockCaptionSettings
impl !UnwindSafe for MockCaptionSettings
impl Forget for MockCaptionSettings
impl Freeze for MockCaptionSettingswhere
*const RcInner<CaptionSettingsShared> is !null: Freeze,
PhantomData<RcInner<CaptionSettingsShared>>: Freeze,
impl Move for MockCaptionSettings
impl Unpin for MockCaptionSettings
impl UnsafeUnpin for MockCaptionSettingswhere
*const RcInner<CaptionSettingsShared> is !null: UnsafeUnpin,
PhantomData<RcInner<CaptionSettingsShared>>: 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