pub struct Activity<'s> { /* private fields */ }Expand description
Runtime-only branded Activity wrapper — used at submit-site for compile-time shell isolation (C1 contract).
Implementations§
Source§impl<'s> Activity<'s>
impl<'s> Activity<'s>
Sourcepub fn new(brand: ShellBrand<'s>, inner: ActivityRecord) -> Self
pub fn new(brand: ShellBrand<'s>, inner: ActivityRecord) -> Self
Construct a branded Activity<'s>. Caller supplies the ShellBrand
obtained from ShellBrand::run — the
brand’s invariant lifetime keeps this primitive from leaking across
shells at the type level.
Sourcepub fn inner(&self) -> &ActivityRecord
pub fn inner(&self) -> &ActivityRecord
Borrow the underlying storage-safe record.
Sourcepub fn brand(&self) -> ShellBrand<'s>
pub fn brand(&self) -> ShellBrand<'s>
Shell brand of this Activity.
Trait Implementations§
Auto Trait Implementations§
impl<'s> !Freeze for Activity<'s>
impl<'s> RefUnwindSafe for Activity<'s>
impl<'s> Send for Activity<'s>
impl<'s> Sync for Activity<'s>
impl<'s> Unpin for Activity<'s>
impl<'s> UnsafeUnpin for Activity<'s>
impl<'s> UnwindSafe for Activity<'s>
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