pub struct ExtensionModuleRegistrar<'a> { /* private fields */ }Expand description
Borrowed registrar for one extension module transaction.
Implementations§
Source§impl ExtensionModuleRegistrar<'_>
impl ExtensionModuleRegistrar<'_>
Sourcepub fn register_engine(
&mut self,
engine: Arc<dyn ExtensionEngine>,
) -> Result<(), ExtensionModuleError>
pub fn register_engine( &mut self, engine: Arc<dyn ExtensionEngine>, ) -> Result<(), ExtensionModuleError>
Register one extension preparation engine.
§Errors
Returns ExtensionModuleError::ConflictingEngine when a distinct
engine already occupies the same (family, engine) transaction key.
Sourcepub fn register_planning_config(
&mut self,
engine_id: EngineId,
config: Arc<dyn ExtensionPlanningConfig>,
) -> Result<(), ExtensionModuleError>
pub fn register_planning_config( &mut self, engine_id: EngineId, config: Arc<dyn ExtensionPlanningConfig>, ) -> Result<(), ExtensionModuleError>
Register the planning config for one extension engine.
§Errors
Returns a typed ExtensionModuleError when the target engine is absent,
the config family is mismatched, or an unequal config is already present.
Sourcepub fn register_cache_owner(
&mut self,
id: CacheOwnerId,
owner: Arc<dyn RuntimeCacheOwner>,
) -> Result<(), ExtensionModuleError>
pub fn register_cache_owner( &mut self, id: CacheOwnerId, owner: Arc<dyn RuntimeCacheOwner>, ) -> Result<(), ExtensionModuleError>
Register a cache owner owned by this extension module.
§Errors
Returns ExtensionModuleError::ConflictingCacheOwner when a distinct
owner already occupies the same local owner ID.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExtensionModuleRegistrar<'a>
impl<'a> !RefUnwindSafe for ExtensionModuleRegistrar<'a>
impl<'a> Send for ExtensionModuleRegistrar<'a>
impl<'a> Sync for ExtensionModuleRegistrar<'a>
impl<'a> Unpin for ExtensionModuleRegistrar<'a>
impl<'a> UnsafeUnpin for ExtensionModuleRegistrar<'a>
impl<'a> !UnwindSafe for ExtensionModuleRegistrar<'a>
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> 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