pub struct ProcedureLoader { /* private fields */ }Expand description
FFI procedure loader for dynamic libraries
Implementations§
Source§impl ProcedureLoader
impl ProcedureLoader
pub fn load_procedure_library(&mut self, path: &Path) -> FFIResult<bool>
Sourcepub fn register_procedure(
&mut self,
path: &Path,
) -> FFIResult<Option<LoadedProcedureInfo>>
pub fn register_procedure( &mut self, path: &Path, ) -> FFIResult<Option<LoadedProcedureInfo>>
Register a procedure library without instantiating it
Sourcepub fn load_procedure(
&mut self,
path: &Path,
config: &[u8],
) -> FFIResult<Option<NativeProcedureFFI>>
pub fn load_procedure( &mut self, path: &Path, config: &[u8], ) -> FFIResult<Option<NativeProcedureFFI>>
Load a procedure from a dynamic library
Sourcepub fn create_procedure_by_name(
&mut self,
name: &str,
config: &[u8],
) -> FFIResult<NativeProcedureFFI>
pub fn create_procedure_by_name( &mut self, name: &str, config: &[u8], ) -> FFIResult<NativeProcedureFFI>
Create a procedure instance from an already loaded library by name
Sourcepub fn has_procedure(&self, name: &str) -> bool
pub fn has_procedure(&self, name: &str) -> bool
Check if a procedure name is registered
Trait Implementations§
Source§impl Default for ProcedureLoader
impl Default for ProcedureLoader
Auto Trait Implementations§
impl Freeze for ProcedureLoader
impl RefUnwindSafe for ProcedureLoader
impl Send for ProcedureLoader
impl Sync for ProcedureLoader
impl Unpin for ProcedureLoader
impl UnsafeUnpin for ProcedureLoader
impl UnwindSafe for ProcedureLoader
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more