pub struct ObsVideoEncoder { /* private fields */ }
Implementations§
Source§impl ObsVideoEncoder
impl ObsVideoEncoder
pub async fn new<T: Into<ObsString> + Sync + Send, K: Into<ObsString> + Sync + Send>( id: T, name: K, settings: Option<ObsData>, hotkey_data: Option<ObsData>, runtime: ObsRuntime, ) -> Result<Self, ObsError>
pub fn as_ptr(&self) -> Sendable<*mut obs_encoder>
Sourcepub async fn set_video_context(
&mut self,
handler: Sendable<*mut video_output>,
) -> Result<(), ObsError>
pub async fn set_video_context( &mut self, handler: Sendable<*mut video_output>, ) -> Result<(), ObsError>
This is only needed once for global video context
Trait Implementations§
Source§impl Debug for ObsVideoEncoder
impl Debug for ObsVideoEncoder
Auto Trait Implementations§
impl Freeze for ObsVideoEncoder
impl !RefUnwindSafe for ObsVideoEncoder
impl Send for ObsVideoEncoder
impl Sync for ObsVideoEncoder
impl Unpin for ObsVideoEncoder
impl !UnwindSafe for ObsVideoEncoder
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