pub struct CoreRef<'core> { /* private fields */ }
Expand description
A reference to a VapourSynth core.
Implementations§
source§impl<'core> CoreRef<'core>
impl<'core> CoreRef<'core>
sourcepub fn new(flags: CoreCreationFlags) -> Self
pub fn new(flags: CoreCreationFlags) -> Self
Creates and returns a new core.
Note that there’s currently no safe way of freeing the returned core, and the lifetime is
unbounded, because it can live for an arbitrary long time. You may use the (unsafe)
rustsynth_sys::VSAPI::freeCore()
after ensuring that all frame requests have completed
and all objects belonging to the core have been released.
Example
use rustsynth::core::{CoreFlags, CoreRef};
let core = CoreRef::new(CoreFlags::ENABLE_GRAPH_INSPECTION | CoreFlags::DISABLE_AUTO_LOADING)
sourcepub fn plugin_by_namespace(&self, namespace: &str) -> Option<Plugin<'core>>
pub fn plugin_by_namespace(&self, namespace: &str) -> Option<Plugin<'core>>
Returns an instance of Some(Plugin)
if there exists a plugin loaded associated with the namespace
None if no plugin is found
sourcepub fn plugin_by_id(&self, id: &str) -> Option<Plugin<'_>>
pub fn plugin_by_id(&self, id: &str) -> Option<Plugin<'_>>
Returns an instance of Some(Plugin)
if there exists a plugin loaded associated with the id
None if no plugin is found
pub fn set_thread_count(&self, count: usize) -> i32
Trait Implementations§
impl<'core> Copy for CoreRef<'core>
impl<'core> Send for CoreRef<'core>
impl<'core> Sync for CoreRef<'core>
Auto Trait Implementations§
impl<'core> RefUnwindSafe for CoreRef<'core>
impl<'core> Unpin for CoreRef<'core>
impl<'core> UnwindSafe for CoreRef<'core>
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