pub struct Engine { /* private fields */ }Expand description
Odori’s owner for an embedded Tokeira engine.
The wrapper deliberately accepts E1’s configuration types and returns E1’s typed startup and shutdown failures unchanged. In particular, a rejected DSQL configuration cannot turn into an in-memory engine here.
Implementations§
Source§impl Engine
impl Engine
Sourcepub async fn start_with_embedded_config(
config: EmbeddedEngineConfig,
) -> Result<Self, EmbeddedEngineStartError>
pub async fn start_with_embedded_config( config: EmbeddedEngineConfig, ) -> Result<Self, EmbeddedEngineStartError>
Start an embedded engine in the explicitly selected storage mode.
EmbeddedStorageConfig::InMemory also honors the snapshot policy in
TokeiraConfig. Managed and existing DSQL modes preserve the engine’s
validation, lifecycle, migration, and never-fallback semantics.
Sourcepub fn startup_report(&self) -> &EngineStartupReport
pub fn startup_report(&self) -> &EngineStartupReport
The engine’s complete redacted cluster, schema, and ownership report.
Sourcepub fn startup_elapsed(&self) -> Duration
pub fn startup_elapsed(&self) -> Duration
Wall-clock time measured across the complete embedded startup call.
Sourcepub fn service_override(&self) -> CallbackBasedGrpcService
pub fn service_override(&self) -> CallbackBasedGrpcService
Adapt this engine to the Temporal SDK’s in-process transport.
Sourcepub async fn shutdown(self) -> Result<(), EmbeddedEngineShutdownError>
pub async fn shutdown(self) -> Result<(), EmbeddedEngineShutdownError>
Gracefully stop the engine, forwarding E1’s typed cleanup result.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl !Sync for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Send for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request