pub struct TransformLoader { /* private fields */ }Expand description
FFI transform loader for dynamic libraries
Implementations§
Source§impl TransformLoader
impl TransformLoader
pub fn load_transform_library(&mut self, path: &Path) -> FFIResult<bool>
Sourcepub fn register_transform(
&mut self,
path: &Path,
) -> FFIResult<Option<LoadedTransformInfo>>
pub fn register_transform( &mut self, path: &Path, ) -> FFIResult<Option<LoadedTransformInfo>>
Register a transform library without instantiating it
Sourcepub fn load_transform(
&mut self,
path: &Path,
config: &[u8],
) -> FFIResult<Option<NativeTransformFFI>>
pub fn load_transform( &mut self, path: &Path, config: &[u8], ) -> FFIResult<Option<NativeTransformFFI>>
Load a transform from a dynamic library
Sourcepub fn create_transform_by_name(
&mut self,
name: &str,
config: &[u8],
) -> FFIResult<NativeTransformFFI>
pub fn create_transform_by_name( &mut self, name: &str, config: &[u8], ) -> FFIResult<NativeTransformFFI>
Create a transform instance from an already loaded library by name
Sourcepub fn has_transform(&self, name: &str) -> bool
pub fn has_transform(&self, name: &str) -> bool
Check if a transform name is registered
Trait Implementations§
Source§impl Default for TransformLoader
impl Default for TransformLoader
Auto Trait Implementations§
impl Freeze for TransformLoader
impl RefUnwindSafe for TransformLoader
impl Send for TransformLoader
impl Sync for TransformLoader
impl Unpin for TransformLoader
impl UnsafeUnpin for TransformLoader
impl UnwindSafe for TransformLoader
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