Struct obs_wrapper::module::ModuleContext
source · [−]pub struct ModuleContext { /* private fields */ }Implementations
sourceimpl ModuleContext
impl ModuleContext
sourcepub unsafe fn new(raw: *mut obs_module_t) -> Self
pub unsafe fn new(raw: *mut obs_module_t) -> Self
Safety
Creates a ModuleContext from a pointer to the raw obs_module data which if modified could cause UB.
sourcepub unsafe fn get_raw(&self) -> *mut obs_module_t
pub unsafe fn get_raw(&self) -> *mut obs_module_t
Safety
Returns a pointer to the raw obs_module data which if modified could cause UB.
Auto Trait Implementations
impl RefUnwindSafe for ModuleContext
impl !Send for ModuleContext
impl !Sync for ModuleContext
impl Unpin for ModuleContext
impl UnwindSafe for ModuleContext
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