pub struct PreparationOnlyEngineRegistrationConfig { /* private fields */ }Expand description
Typed configuration for assembling a preparation-only engine registration.
Preparation-only registrations retain the provider’s execution-context identity but intentionally contain no executable backend or event driver.
§Examples
use std::sync::Arc;
use tenferro_runtime::{
CoreCapabilityBundle, EngineId, EngineRegistrationMetadata,
ExecutionContextIdentity, HardwareClassId, PreparationOnlyEngineRegistrationConfig,
ProviderDeviceIdentity, ProviderId, StorageClass,
};
let engine_id = EngineId::new("example.engine.v1")?;
let provider = ProviderDeviceIdentity::new(
ProviderId::new("example.provider")?,
"device:0",
)?;
let hardware = HardwareClassId::new("example.hardware.v1")?;
let storage = StorageClass::new("example.storage.v1")?;
let metadata = EngineRegistrationMetadata::new(
engine_id,
provider,
hardware,
Arc::from([storage.clone()]),
storage,
CoreCapabilityBundle::default(),
);
let config = PreparationOnlyEngineRegistrationConfig::new(
metadata,
ExecutionContextIdentity::of::<()>(),
);
let _ = config;Implementations§
Source§impl PreparationOnlyEngineRegistrationConfig
impl PreparationOnlyEngineRegistrationConfig
Sourcepub fn new(
metadata: EngineRegistrationMetadata,
context_identity: ExecutionContextIdentity,
) -> Self
pub fn new( metadata: EngineRegistrationMetadata, context_identity: ExecutionContextIdentity, ) -> Self
Construct a preparation-only registration descriptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparationOnlyEngineRegistrationConfig
impl !RefUnwindSafe for PreparationOnlyEngineRegistrationConfig
impl Send for PreparationOnlyEngineRegistrationConfig
impl Sync for PreparationOnlyEngineRegistrationConfig
impl Unpin for PreparationOnlyEngineRegistrationConfig
impl UnsafeUnpin for PreparationOnlyEngineRegistrationConfig
impl !UnwindSafe for PreparationOnlyEngineRegistrationConfig
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