pub struct ActionContext {
pub ceiling: Visibility,
}Expand description
What a pack action body receives. The ceiling is the framework’s
enforcement point: every visibility the body produces is clamped (and
the commit path rejects rows that would exceed it), so a pack author
cannot stamp wider than the declared min_visibility no matter what
the body does (P3: a compile-time AND framework-enforced property).
Fields§
§ceiling: VisibilityThe declared visibility ceiling for this verb.
Implementations§
Source§impl ActionContext
impl ActionContext
Sourcepub fn narrow(&self, requested: Visibility) -> Visibility
pub fn narrow(&self, requested: Visibility) -> Visibility
Clamp a requested visibility to the declared ceiling. Bodies call this when stamping produced memories.
Trait Implementations§
Source§impl Clone for ActionContext
impl Clone for ActionContext
Source§fn clone(&self) -> ActionContext
fn clone(&self) -> ActionContext
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 moreimpl Copy for ActionContext
Auto Trait Implementations§
impl Freeze for ActionContext
impl RefUnwindSafe for ActionContext
impl Send for ActionContext
impl Sync for ActionContext
impl Unpin for ActionContext
impl UnsafeUnpin for ActionContext
impl UnwindSafe for ActionContext
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