pub struct PluginContext { /* private fields */ }Implementations§
Source§impl PluginContext
impl PluginContext
pub fn get_host(&self) -> HostHandle
pub fn num_threads(&self) -> Result<u32>
pub fn run_in_threads<R>(
&self,
n_threads: UnsignedInt,
runnable: &mut R,
) -> Result<()>where
R: Runnable,
Auto Trait Implementations§
impl Freeze for PluginContext
impl RefUnwindSafe for PluginContext
impl !Send for PluginContext
impl !Sync for PluginContext
impl Unpin for PluginContext
impl UnwindSafe for PluginContext
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