#[repr(transparent)]pub struct PluginModuleRef(pub PrefixRef<PluginModule_Prefix>);Expand description
This is the pointer to the prefix of
PluginModule.
This is automatically generated documentation,by the StableAbi derive macro.
§Creating a compiletime-constant
You can look at the docs in ::abi_stable::docs::prefix_types to see how you
can construct and use this and similar types.
More specifically in the
“constructing a module” example
or the
“Constructing a vtable” example
Tuple Fields§
§0: PrefixRef<PluginModule_Prefix>Implementations§
Source§impl PluginModuleRef
impl PluginModuleRef
Sourcepub fn init(
&self,
) -> extern "C" fn(logging: PluginLogging) -> RResult<PluginRuntimeConfiguration, PluginInitializationError>
pub fn init( &self, ) -> extern "C" fn(logging: PluginLogging) -> RResult<PluginRuntimeConfiguration, PluginInitializationError>
Accessor method for the PluginModule::init field.This is for a field which always exists.
Sourcepub fn create(
&self,
) -> extern "C" fn(plugin_id: RString, input_schema: ROption<SafeArrowSchema>, options: PluginOptions, runtime: PluginAsyncRuntimeObj, state_backend_config: PluginStateBackendConfig, message_channels: PluginChannels) -> RResult<PluginResult, PluginInitializationError>
pub fn create( &self, ) -> extern "C" fn(plugin_id: RString, input_schema: ROption<SafeArrowSchema>, options: PluginOptions, runtime: PluginAsyncRuntimeObj, state_backend_config: PluginStateBackendConfig, message_channels: PluginChannels) -> RResult<PluginResult, PluginInitializationError>
Accessor method for the PluginModule::create field.This is for a field which always exists.
Source§impl PluginModuleRef
impl PluginModuleRef
Sourcepub fn _prefix_type_layout(self) -> &'static PTStructLayout
pub fn _prefix_type_layout(self) -> &'static PTStructLayout
Accessor to get the layout of the type,used for error messages.
Sourcepub fn udf_descriptors(
&self,
) -> Option<extern "C" fn() -> RResult<RVec<PluginUdfDescriptor>, PluginInitializationError>>
pub fn udf_descriptors( &self, ) -> Option<extern "C" fn() -> RResult<RVec<PluginUdfDescriptor>, PluginInitializationError>>
Accessor method for the PluginModule::udf_descriptors field.Returns Some(field_value) if the field exists,None if it does not.
Sourcepub fn side_output_descriptors(
&self,
) -> Option<extern "C" fn() -> RResult<RVec<PluginSideOutputDescriptor>, PluginInitializationError>>
pub fn side_output_descriptors( &self, ) -> Option<extern "C" fn() -> RResult<RVec<PluginSideOutputDescriptor>, PluginInitializationError>>
Accessor method for the PluginModule::side_output_descriptors field.Returns Some(field_value) if the field exists,None if it does not.
Trait Implementations§
Source§impl Clone for PluginModuleRef
impl Clone for PluginModuleRef
impl Copy for PluginModuleRef
Source§impl GetPointerKind for PluginModuleRef
impl GetPointerKind for PluginModuleRef
Source§type PtrTarget = WithMetadata_<PluginModule_Prefix, PluginModule_Prefix>
type PtrTarget = WithMetadata_<PluginModule_Prefix, PluginModule_Prefix>
Source§type Kind = PK_Reference
type Kind = PK_Reference
Source§impl GetStaticEquivalent_ for PluginModuleRefwhere
PluginModule: PrefixTypeTrait,
impl GetStaticEquivalent_ for PluginModuleRefwhere
PluginModule: PrefixTypeTrait,
Source§type StaticEquivalent = PrefixRef<_static_PluginModule>
type StaticEquivalent = PrefixRef<_static_PluginModule>
'static equivalent of SelfSource§impl PrefixRefTrait for PluginModuleRef
impl PrefixRefTrait for PluginModuleRef
Source§type PrefixFields = PluginModule_Prefix
type PrefixFields = PluginModule_Prefix
#[sabi(last_prefix_field)] inclusive. Read moreSource§fn from_prefix_ref(this: PrefixRef<Self::PrefixFields>) -> Self
fn from_prefix_ref(this: PrefixRef<Self::PrefixFields>) -> Self
PrefixRef to SelfSource§fn to_prefix_ref(self) -> PrefixRef<Self::PrefixFields>
fn to_prefix_ref(self) -> PrefixRef<Self::PrefixFields>
Self to a PrefixRefSource§impl RootModule for PluginModuleRef
impl RootModule for PluginModuleRef
Source§const BASE_NAME: &'static str = "streamling_plugin"
const BASE_NAME: &'static str = "streamling_plugin"
implementation crate.Source§const NAME: &'static str = "streamling_plugin"
const NAME: &'static str = "streamling_plugin"
Source§const VERSION_STRINGS: VersionStrings
const VERSION_STRINGS: VersionStrings
Source§fn root_module_statics() -> &'static RootModuleStatics<PluginModuleRef>
fn root_module_statics() -> &'static RootModuleStatics<PluginModuleRef>
Source§fn initialization(self) -> Result<Self, LibraryError>
fn initialization(self) -> Result<Self, LibraryError>
Source§const CONSTANTS: RootModuleConsts = _
const CONSTANTS: RootModuleConsts = _
Source§const CONSTANTS_NO_ABI_INFO: RootModuleConsts = _
const CONSTANTS_NO_ABI_INFO: RootModuleConsts = _
Self::CONSTANTS,
except without including the type layout constant for the root module.Source§fn get_module() -> Option<Self>
fn get_module() -> Option<Self>
Source§fn get_raw_library() -> Option<&'static RawLibrary>
fn get_raw_library() -> Option<&'static RawLibrary>
Source§fn get_library_path(directory: &Path) -> PathBuf
fn get_library_path(directory: &Path) -> PathBuf
Source§fn load_module_with<F, E>(f: F) -> Result<Self, E>
fn load_module_with<F, E>(f: F) -> Result<Self, E>
Source§fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError>
fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError>
where_,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn load_from_directory(where_: &Path) -> Result<Self, LibraryError>
fn load_from_directory(where_: &Path) -> Result<Self, LibraryError>
where_,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn load_from_file(path_: &Path) -> Result<Self, LibraryError>
fn load_from_file(path_: &Path) -> Result<Self, LibraryError>
path_,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§impl StableAbi for PluginModuleRefwhere
PluginModule: PrefixTypeTrait,
impl StableAbi for PluginModuleRefwhere
PluginModule: PrefixTypeTrait,
Source§const LAYOUT: &'static TypeLayout = <__sabi_re::PrefixRef<PluginModule_Prefix> as __sabi_re::StableAbi>::LAYOUT
const LAYOUT: &'static TypeLayout = <__sabi_re::PrefixRef<PluginModule_Prefix> as __sabi_re::StableAbi>::LAYOUT
Source§type IsNonZeroType = True
type IsNonZeroType = True
Source§const ABI_CONSTS: AbiConsts = _
const ABI_CONSTS: AbiConsts = _
const-equivalents of the associated types.Auto Trait Implementations§
impl Freeze for PluginModuleRef
impl RefUnwindSafe for PluginModuleRef
impl Send for PluginModuleRef
impl Sync for PluginModuleRef
impl Unpin for PluginModuleRef
impl UnsafeUnpin for PluginModuleRef
impl UnwindSafe for PluginModuleRef
Blanket Implementations§
Source§impl<T> AlignerFor<1> for T
impl<T> AlignerFor<1> for T
Source§impl<T> AlignerFor<2> for T
impl<T> AlignerFor<2> for T
Source§impl<T> AlignerFor<4> for T
impl<T> AlignerFor<4> for T
Source§impl<T> AlignerFor<8> for T
impl<T> AlignerFor<8> for T
Source§impl<T> AlignerFor<16> for T
impl<T> AlignerFor<16> for T
Source§impl<T> AlignerFor<32> for T
impl<T> AlignerFor<32> for T
Source§impl<T> AlignerFor<64> for T
impl<T> AlignerFor<64> for T
Source§impl<T> AlignerFor<128> for T
impl<T> AlignerFor<128> for T
Source§type Aligner = AlignTo128<T>
type Aligner = AlignTo128<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<256> for T
impl<T> AlignerFor<256> for T
Source§type Aligner = AlignTo256<T>
type Aligner = AlignTo256<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<512> for T
impl<T> AlignerFor<512> for T
Source§type Aligner = AlignTo512<T>
type Aligner = AlignTo512<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<1024> for T
impl<T> AlignerFor<1024> for T
Source§type Aligner = AlignTo1024<T>
type Aligner = AlignTo1024<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<2048> for T
impl<T> AlignerFor<2048> for T
Source§type Aligner = AlignTo2048<T>
type Aligner = AlignTo2048<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<4096> for T
impl<T> AlignerFor<4096> for T
Source§type Aligner = AlignTo4096<T>
type Aligner = AlignTo4096<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<8192> for T
impl<T> AlignerFor<8192> for T
Source§type Aligner = AlignTo8192<T>
type Aligner = AlignTo8192<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<16384> for T
impl<T> AlignerFor<16384> for T
Source§type Aligner = AlignTo16384<T>
type Aligner = AlignTo16384<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<32768> for T
impl<T> AlignerFor<32768> for T
Source§type Aligner = AlignTo32768<T>
type Aligner = AlignTo32768<T>
AlignTo* type which aligns Self to ALIGNMENT.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> ImmutableRef for T
impl<T> ImmutableRef for T
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>
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>
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 moreSource§impl<M> IntoRootModuleResult for Mwhere
M: RootModule,
impl<M> IntoRootModuleResult for Mwhere
M: RootModule,
Source§fn into_root_module_result(self) -> Result<M, RootModuleError>
fn into_root_module_result(self) -> Result<M, RootModuleError>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
Source§fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
Source§fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
Source§impl<S> ROExtAcc for S
impl<S> ROExtAcc for S
Source§fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
offset. Read moreSource§fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
offset. Read moreSource§fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
offset. Read moreSource§fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
offset. Read moreSource§impl<S> ROExtOps<Aligned> for S
impl<S> ROExtOps<Aligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
Source§impl<S> ROExtOps<Unaligned> for S
impl<S> ROExtOps<Unaligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
Source§impl<T> SelfOps for Twhere
T: ?Sized,
impl<T> SelfOps for Twhere
T: ?Sized,
Source§fn piped<F, U>(self, f: F) -> U
fn piped<F, U>(self, f: F) -> U
Source§fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
piped except that the function takes &Self
Useful for functions that take &Self instead of Self. Read moreSource§fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
piped, except that the function takes &mut Self.
Useful for functions that take &mut Self instead of Self.Source§fn mutated<F>(self, f: F) -> Self
fn mutated<F>(self, f: F) -> Self
Source§fn observe<F>(self, f: F) -> Self
fn observe<F>(self, f: F) -> Self
Source§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
AsRef,
using the turbofish .as_ref_::<_>() syntax. Read more