pub struct PinnedChecker { /* private fields */ }Expand description
Runs a task’s tests against a pinned, hash-verified snapshot.
Named for what it actually guarantees. It does not sandbox: confinement is the deployment sandbox’s job, and a type named for a property it does not enforce would be read as a safety claim it cannot honour.
Implementations§
Source§impl PinnedChecker
impl PinnedChecker
Sourcepub fn new(config: CheckerConfig) -> Result<Self, CheckerSetupError>
pub fn new(config: CheckerConfig) -> Result<Self, CheckerSetupError>
Snapshots the test suite and pins its manifest.
The snapshot is taken once, at construction, so that later edits to the operator’s original directory cannot change what is being verified against mid-flight.
Sourcepub fn manifest_identity(&self) -> &str
pub fn manifest_identity(&self) -> &str
Stable public identity of the pinned checker contract.
Trait Implementations§
Source§impl Checker for PinnedChecker
impl Checker for PinnedChecker
Source§fn check<'life0, 'life1, 'async_trait>(
&'life0 self,
request: CheckerRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Option<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check<'life0, 'life1, 'async_trait>(
&'life0 self,
request: CheckerRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Option<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Runs the task’s checks against an attempt, reporting whether they passed. Read more
Auto Trait Implementations§
impl Freeze for PinnedChecker
impl !RefUnwindSafe for PinnedChecker
impl Send for PinnedChecker
impl Sync for PinnedChecker
impl Unpin for PinnedChecker
impl UnsafeUnpin for PinnedChecker
impl !UnwindSafe for PinnedChecker
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