Struct obs_wrapper::source::context::CreatableSourceContext
source · [−]pub struct CreatableSourceContext<'a, D> {
pub settings: DataObj<'a>,
pub global: &'a mut GlobalContext,
/* private fields */
}Fields
settings: DataObj<'a>global: &'a mut GlobalContextImplementations
sourceimpl<'a, D> CreatableSourceContext<'a, D>
impl<'a, D> CreatableSourceContext<'a, D>
pub fn register_hotkey<F: FnMut(&mut Hotkey, &mut D) + 'static>(
&mut self,
name: ObsString,
description: ObsString,
func: F
)
pub fn with_audio<T, F: FnOnce(&AudioRef) -> T>(&self, func: F) -> T
Auto Trait Implementations
impl<'a, D> !RefUnwindSafe for CreatableSourceContext<'a, D>
impl<'a, D> !Send for CreatableSourceContext<'a, D>
impl<'a, D> !Sync for CreatableSourceContext<'a, D>
impl<'a, D> Unpin for CreatableSourceContext<'a, D>
impl<'a, D> !UnwindSafe for CreatableSourceContext<'a, D>
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