pub struct ObsVideoInfo { /* private fields */ }
Expand description
A wrapper for obs_video_info
, which is used
to pass information to libobs for the new OBS
video context after resetting the old OBS
video context.
Implementations§
Source§impl ObsVideoInfo
impl ObsVideoInfo
Sourcepub fn new(ovi: obs_video_info, graphics_module: ObsString) -> Self
pub fn new(ovi: obs_video_info, graphics_module: ObsString) -> Self
Creates a new ObsVideoInfo
.
Note that this function is not meant to
be used externally. The recommended,
supported way to build new ObsVideoInfo
structs is through ObsVideoInfoBuilder
.
Sourcepub fn as_ptr(&mut self) -> *mut obs_video_info
pub fn as_ptr(&mut self) -> *mut obs_video_info
Returns an ObsVideoInfo
pointer.
pub fn graphics_module(&self) -> &ObsString
Trait Implementations§
Source§impl Clone for ObsVideoInfo
impl Clone for ObsVideoInfo
Source§fn clone(&self) -> ObsVideoInfo
fn clone(&self) -> ObsVideoInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObsVideoInfo
impl Debug for ObsVideoInfo
Source§impl Default for ObsVideoInfo
impl Default for ObsVideoInfo
Source§impl PartialEq for ObsVideoInfo
impl PartialEq for ObsVideoInfo
impl Eq for ObsVideoInfo
impl StructuralPartialEq for ObsVideoInfo
Auto Trait Implementations§
impl Freeze for ObsVideoInfo
impl RefUnwindSafe for ObsVideoInfo
impl Send for ObsVideoInfo
impl Sync for ObsVideoInfo
impl Unpin for ObsVideoInfo
impl UnwindSafe for ObsVideoInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.