pub struct RequestExecutionView { /* private fields */ }Expand description
Immutable local facts + a frozen visibility stage, sharing the single root. Source receipts retain this object, not another projection or diagnostic body.
ⓘ
use saddle_core::RequestExecutionView;
fn rewrite(view: RequestExecutionView) { view.inner.published = false; }Implementations§
Source§impl RequestExecutionView
impl RequestExecutionView
pub fn diagnostic_snapshot(&self) -> RequestContextSnapshot
Sourcepub fn with_business(&self, source: impl Into<ContextSourceRef>) -> Self
pub fn with_business(&self, source: impl Into<ContextSourceRef>) -> Self
New immutable business revision. Runtime retains the source’s storage guard; existing views and explicitly derived children remain untouched.
pub fn unified_context(&self) -> UnifiedContext<'_>
pub fn outbound_source_context<'a>( &'a self, business_unit: &'a str, ) -> OutboundSourceContext<'a>
pub fn with_phase(&self, phase: RequestViewPhase) -> Self
pub fn with_db_operation(&self, operation: RegisteredContextOperation) -> Self
Sourcepub fn in_task(&self, task: u64) -> Self
pub fn in_task(&self, task: u64) -> Self
Derive the observation for the actual task selected by the runtime. The numeric task is metadata, never a task permit or a sequence minted here.
pub fn in_db_scope( &self, scope: &DbScopeDiagnosticContext<Self>, ) -> Result<Self, ContextConflict>
pub fn observed_db_scope( &self, scope: &DbScopeObservation<Self>, ) -> Result<Self, ContextConflict>
pub fn same_request(&self, other: &Self) -> bool
pub fn same_view(&self, other: &Self) -> bool
Sourcepub fn refresh(&self, root: &RequestRootRef) -> Result<Self, ContextConflict>
pub fn refresh(&self, root: &RequestRootRef) -> Result<Self, ContextConflict>
Only the existing entry root can authorize a later visibility stage.
pub fn child( &self, call: &CallContext, request: &str, route: &str, attempt: u32, ) -> Result<Self, ContextConflict>
Trait Implementations§
Source§impl Clone for RequestExecutionView
impl Clone for RequestExecutionView
Source§impl Drop for RequestExecutionView
impl Drop for RequestExecutionView
Auto Trait Implementations§
impl !RefUnwindSafe for RequestExecutionView
impl !UnwindSafe for RequestExecutionView
impl Freeze for RequestExecutionView
impl Send for RequestExecutionView
impl Sync for RequestExecutionView
impl Unpin for RequestExecutionView
impl UnsafeUnpin for RequestExecutionView
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