pub struct PreparedOperationPlan { /* private fields */ }Expand description
Runtime-owned prepared operation plan with separated metadata and optional execution bridge.
Core operations are metadata-only because scheduled execution dispatches them through the selected engine’s core executor. Extension operations carry an executor bridge that is invoked only by the scheduled runtime loop.
§Examples
use std::fmt::Debug;
use tenferro_runtime::PreparedOperationPlan;
fn requires_debug<T: Debug>() {}
requires_debug::<PreparedOperationPlan>();Implementations§
Source§impl PreparedOperationPlan
impl PreparedOperationPlan
Sourcepub fn metadata(operation: PreparedOperationHandle) -> Self
pub fn metadata(operation: PreparedOperationHandle) -> Self
Construct a metadata-only prepared operation plan.
§Examples
use tenferro_runtime::{PreparedOperationHandle, PreparedOperationPlan};
fn provider_handle() -> PreparedOperationHandle {
unreachable!("example is type-checked but not executed")
}
if false {
let plan = PreparedOperationPlan::metadata(provider_handle());
assert!(plan.executor().is_none());
}Sourcepub fn executable(
operation: PreparedOperationHandle,
executor: PreparedOperationExecutorHandle,
) -> Self
pub fn executable( operation: PreparedOperationHandle, executor: PreparedOperationExecutorHandle, ) -> Self
Construct an executable prepared operation plan.
§Examples
use tenferro_runtime::{
PreparedOperationExecutorHandle, PreparedOperationHandle, PreparedOperationPlan,
};
fn provider_handle() -> PreparedOperationHandle {
unreachable!("example is type-checked but not executed")
}
fn executor_handle() -> PreparedOperationExecutorHandle {
unreachable!("example is type-checked but not executed")
}
if false {
let plan = PreparedOperationPlan::executable(provider_handle(), executor_handle());
assert!(plan.executor().is_some());
}Sourcepub fn operation(&self) -> &PreparedOperationHandle
pub fn operation(&self) -> &PreparedOperationHandle
Return the prepared-operation metadata handle.
§Examples
use tenferro_runtime::{PreparedOperationHandle, PreparedOperationPlan};
fn provider_handle() -> PreparedOperationHandle {
unreachable!("example is type-checked but not executed")
}
if false {
let plan = PreparedOperationPlan::metadata(provider_handle());
let _operation = plan.operation();
}Sourcepub fn binding(&self) -> &PreparedOperationBinding
pub fn binding(&self) -> &PreparedOperationBinding
Return the runtime-created binding carried by the metadata operation.
§Examples
use tenferro_runtime::{PreparedOperationHandle, PreparedOperationPlan};
fn provider_handle() -> PreparedOperationHandle {
unreachable!("example is type-checked but not executed")
}
if false {
let plan = PreparedOperationPlan::metadata(provider_handle());
let _binding = plan.binding();
}Sourcepub fn specialization(&self) -> &SpecializationProjection
pub fn specialization(&self) -> &SpecializationProjection
Return the specialization projection carried by the metadata operation.
§Examples
use tenferro_runtime::{PreparedOperationHandle, PreparedOperationPlan};
fn provider_handle() -> PreparedOperationHandle {
unreachable!("example is type-checked but not executed")
}
if false {
let plan = PreparedOperationPlan::metadata(provider_handle());
let _specialization = plan.specialization();
}Sourcepub fn retained_bytes(&self) -> usize
pub fn retained_bytes(&self) -> usize
Return logical heap bytes owned by metadata and executor handles.
§Examples
use tenferro_runtime::{PreparedOperationHandle, PreparedOperationPlan};
fn provider_handle() -> PreparedOperationHandle {
unreachable!("example is type-checked but not executed")
}
if false {
let plan = PreparedOperationPlan::metadata(provider_handle());
let _bytes = plan.retained_bytes();
}Trait Implementations§
Source§impl Clone for PreparedOperationPlan
impl Clone for PreparedOperationPlan
Source§fn clone(&self) -> PreparedOperationPlan
fn clone(&self) -> PreparedOperationPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedOperationPlan
impl !RefUnwindSafe for PreparedOperationPlan
impl Send for PreparedOperationPlan
impl Sync for PreparedOperationPlan
impl Unpin for PreparedOperationPlan
impl UnsafeUnpin for PreparedOperationPlan
impl !UnwindSafe for PreparedOperationPlan
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> 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