pub struct FFI_TableProviderFactory { /* private fields */ }Expand description
A stable struct for sharing TableProviderFactory across FFI boundaries.
Similar to FFI_TableProvider, this struct uses the FFI-safe pattern where:
- The
FFI_*struct exposes stable function pointers - Private data is stored as an opaque pointer
- The
Foreign*wrapper is used by consumers on the other side of the FFI boundary
Implementations§
Source§impl FFI_TableProviderFactory
impl FFI_TableProviderFactory
Sourcepub fn new(
factory: Arc<dyn TableProviderFactory + Send>,
runtime: Option<Handle>,
task_ctx_provider: impl Into<FFI_TaskContextProvider>,
logical_codec: Option<Arc<dyn LogicalExtensionCodec>>,
) -> Self
pub fn new( factory: Arc<dyn TableProviderFactory + Send>, runtime: Option<Handle>, task_ctx_provider: impl Into<FFI_TaskContextProvider>, logical_codec: Option<Arc<dyn LogicalExtensionCodec>>, ) -> Self
Creates a new FFI_TableProvider.
pub fn new_with_ffi_codec( factory: Arc<dyn TableProviderFactory + Send>, runtime: Option<Handle>, logical_codec: FFI_LogicalExtensionCodec, ) -> Self
Trait Implementations§
Source§impl Clone for FFI_TableProviderFactory
impl Clone for FFI_TableProviderFactory
Source§impl Debug for FFI_TableProviderFactory
impl Debug for FFI_TableProviderFactory
Source§impl Drop for FFI_TableProviderFactory
impl Drop for FFI_TableProviderFactory
Source§impl From<&FFI_TableProviderFactory> for Arc<dyn TableProviderFactory>
impl From<&FFI_TableProviderFactory> for Arc<dyn TableProviderFactory>
Source§fn from(factory: &FFI_TableProviderFactory) -> Self
fn from(factory: &FFI_TableProviderFactory) -> Self
Converts to this type from the input type.
impl Send for FFI_TableProviderFactory
impl Sync for FFI_TableProviderFactory
Auto Trait Implementations§
impl Freeze for FFI_TableProviderFactory
impl RefUnwindSafe for FFI_TableProviderFactory
impl Unpin for FFI_TableProviderFactory
impl UnsafeUnpin for FFI_TableProviderFactory
impl UnwindSafe for FFI_TableProviderFactory
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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