pub struct RuntimePluginFactory { /* private fields */ }Implementations§
Source§impl RuntimePluginFactory
impl RuntimePluginFactory
pub fn runtime_id(&self) -> &str
pub fn plugin_version(&self) -> &str
Trait Implementations§
Source§impl Clone for RuntimePluginFactory
impl Clone for RuntimePluginFactory
Source§fn clone(&self) -> RuntimePluginFactory
fn clone(&self) -> RuntimePluginFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimePluginFactory
impl Debug for RuntimePluginFactory
Source§impl RuntimeFactory for RuntimePluginFactory
impl RuntimeFactory for RuntimePluginFactory
Source§fn kind(&self) -> RuntimeKind
fn kind(&self) -> RuntimeKind
Which runtime this factory creates sessions for.
Source§fn probe(&self) -> RuntimeProbe
fn probe(&self) -> RuntimeProbe
Probe whether this runtime is available on the current machine. Read more
Source§fn create_session(
&self,
artifacts: &RuntimeArtifacts,
options: &RuntimeOptions,
) -> Result<Box<dyn RuntimeSession>>
fn create_session( &self, artifacts: &RuntimeArtifacts, options: &RuntimeOptions, ) -> Result<Box<dyn RuntimeSession>>
Create a new inference session. Read more
Source§fn clear_sessions(&self)
fn clear_sessions(&self)
Release factory-owned session caches. Most factories do not cache.
Auto Trait Implementations§
impl Freeze for RuntimePluginFactory
impl RefUnwindSafe for RuntimePluginFactory
impl Send for RuntimePluginFactory
impl Sync for RuntimePluginFactory
impl Unpin for RuntimePluginFactory
impl UnsafeUnpin for RuntimePluginFactory
impl UnwindSafe for RuntimePluginFactory
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