Skip to main content

ProjectionContext

Struct ProjectionContext 

Source
pub struct ProjectionContext<'i> {
    pub tick: Tick,
    pub instance_id: InstanceId,
    pub manifest: Option<&'i ManifestSnapshot>,
    /* private fields */
}
Expand description

Per-dispatch context carried alongside an EventRecord. The 'i lifetime reserves the slot that binds to the L0 Effect<'i, Authorized> borrow, and also scopes the optional manifest snapshot reference.

Fields§

§tick: Tick

Tick at which the event is being applied.

§instance_id: InstanceId

Runtime instance identifier.

§manifest: Option<&'i ManifestSnapshot>

Active manifest snapshot, if one has been loaded. None is legal for Tier-0 dev bootstrap paths that run before the first manifest has been emitted via RuntimeBootstrap.

Implementations§

Source§

impl<'i> ProjectionContext<'i>

Source

pub fn new(tick: Tick, instance_id: InstanceId) -> Self

Construct a projection dispatch context without a manifest.

Source

pub fn with_manifest( tick: Tick, instance_id: InstanceId, manifest: &'i ManifestSnapshot, ) -> Self

Construct a projection dispatch context with an attached manifest snapshot. Callers that have loaded a manifest should use this path so projection workers can key on shell policy (tier, cipher, etc.).

Auto Trait Implementations§

§

impl<'i> Freeze for ProjectionContext<'i>

§

impl<'i> RefUnwindSafe for ProjectionContext<'i>

§

impl<'i> Send for ProjectionContext<'i>

§

impl<'i> Sync for ProjectionContext<'i>

§

impl<'i> Unpin for ProjectionContext<'i>

§

impl<'i> UnsafeUnpin for ProjectionContext<'i>

§

impl<'i> UnwindSafe for ProjectionContext<'i>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.