Struct obws::client::Transitions
source · pub struct Transitions<'a> { /* private fields */ }
Expand description
API functions related to transitions.
Implementations§
source§impl<'a> Transitions<'a>
impl<'a> Transitions<'a>
sourcepub async fn list_kinds(&self) -> Result<Vec<String>>
pub async fn list_kinds(&self) -> Result<Vec<String>>
Gets an array of all available transition kinds.
sourcepub async fn list(&self) -> Result<SceneTransitionList>
pub async fn list(&self) -> Result<SceneTransitionList>
Gets an array of all scene transitions in OBS.
sourcepub async fn current(&self) -> Result<CurrentSceneTransition>
pub async fn current(&self) -> Result<CurrentSceneTransition>
Gets information about the current scene transition.
sourcepub async fn set_current(&self, name: &str) -> Result<()>
pub async fn set_current(&self, name: &str) -> Result<()>
Sets the current scene transition.
Small note: While the namespace of scene transitions is generally unique, that uniqueness is not a guarantee as it is with other resources like inputs.
sourcepub async fn set_current_duration(&self, duration: Duration) -> Result<()>
pub async fn set_current_duration(&self, duration: Duration) -> Result<()>
Sets the duration of the current scene transition, if it is not fixed.
sourcepub async fn set_current_settings<T>(
&self,
settings: T,
overlay: Option<bool>
) -> Result<()>where
T: Serialize,
pub async fn set_current_settings<T>(
&self,
settings: T,
overlay: Option<bool>
) -> Result<()>where
T: Serialize,
Sets the settings of the current scene transition.
sourcepub async fn current_cursor(&self) -> Result<f32>
pub async fn current_cursor(&self) -> Result<f32>
Gets the cursor position of the current scene transition.
Note: transitionCursor
will return 1.0
when the transition is inactive.
Auto Trait Implementations§
impl<'a> Freeze for Transitions<'a>
impl<'a> !RefUnwindSafe for Transitions<'a>
impl<'a> Send for Transitions<'a>
impl<'a> Sync for Transitions<'a>
impl<'a> Unpin for Transitions<'a>
impl<'a> !UnwindSafe for Transitions<'a>
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