Struct obws::client::MediaInputs
source · pub struct MediaInputs<'a> { /* private fields */ }Expand description
API functions related to media inputs.
Implementations
sourceimpl<'a> MediaInputs<'a>
impl<'a> MediaInputs<'a>
sourcepub async fn status(&self, input: &str) -> Result<MediaStatus>
pub async fn status(&self, input: &str) -> Result<MediaStatus>
Gets the status of a media input.
sourcepub async fn set_cursor(&self, input: &str, cursor: Duration) -> Result<()>
pub async fn set_cursor(&self, input: &str, cursor: Duration) -> Result<()>
Sets the cursor position of a media input.
This request does not perform bounds checking of the cursor position.
sourcepub async fn offset_cursor(&self, input: &str, offset: Duration) -> Result<()>
pub async fn offset_cursor(&self, input: &str, offset: Duration) -> Result<()>
Offsets the current cursor position of a media input by the specified value.
This request does not perform bounds checking of the cursor position.
sourcepub async fn trigger_action(&self, input: &str, action: MediaAction) -> Result<()>
pub async fn trigger_action(&self, input: &str, action: MediaAction) -> Result<()>
Triggers an action on a media input.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for MediaInputs<'a>
impl<'a> Send for MediaInputs<'a>
impl<'a> Sync for MediaInputs<'a>
impl<'a> Unpin for MediaInputs<'a>
impl<'a> !UnwindSafe for MediaInputs<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more