pub struct CaptureRun<'a> {
pub screen: &'a mut Screen,
pub checkout: Checkout,
pub pk_id: [u8; 32],
pub counts: CaptureCounts,
pub pending: Vec<Pending>,
pub now_ms: i64,
}Expand description
One capture run for one place: the gate’s inputs and what it counted.
Fields§
§screen: &'a mut Screen§checkout: Checkout§pk_id: [u8; 32]§counts: CaptureCounts§pending: Vec<Pending>§now_ms: i64Implementations§
Source§impl<'a> CaptureRun<'a>
impl<'a> CaptureRun<'a>
pub fn new( screen: &'a mut Screen, root: &Path, pk_id: [u8; 32], pending: Vec<Pending>, now_ms: i64, ) -> Self
Sourcepub fn is_pending(&self, f: &KnowledgeFact) -> bool
pub fn is_pending(&self, f: &KnowledgeFact) -> bool
Whether f waits for its commit (it is re-checked on every run).
Sourcepub fn unpublished(&mut self, f: &KnowledgeFact)
pub fn unpublished(&mut self, f: &KnowledgeFact)
Record an unpublished_ref verdict: pending for PENDING_DAYS,
then rejected finally (the caller counts it once per run either way).
Sourcepub fn settled(&mut self, f: &KnowledgeFact)
pub fn settled(&mut self, f: &KnowledgeFact)
f passed (or failed for another reason): it no longer waits.
Auto Trait Implementations§
impl<'a> !UnwindSafe for CaptureRun<'a>
impl<'a> Forget for CaptureRun<'a>
impl<'a> Freeze for CaptureRun<'a>where
&'a mut Screen: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, Option<Vec<u8>>)>: Freeze,
PhantomData<(String, RefState)>: Freeze,
PhantomData<(String, bool)>: Freeze,
PhantomData<(String, ())>: Freeze,
*const LeafNode<ReasonCode, u32> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ReasonCode, u32)>>: Freeze,
PhantomData<Pending>: Freeze,
impl<'a> Move for CaptureRun<'a>
impl<'a> RefUnwindSafe for CaptureRun<'a>where
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + UnwindSafe + RefUnwindSafe + Sync + Send>>: RefUnwindSafe,
impl<'a> Send for CaptureRun<'a>where
RawVecInner: Send,
Arc<Vec<Regex>>: Send,
Arc<RegexI>: Send,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + UnwindSafe + RefUnwindSafe + Sync + Send>>>: Send,
Arc<str>: Send,
RawTable<(String, Option<Vec<u8>>)>: Send,
RawTable<(String, RefState)>: Send,
RawTable<(String, bool)>: Send,
RawTable<(String, ())>: Send,
NodeRef<Owned, ReasonCode, u32, LeafOrInternal>: Send,
BoxRaw<(ReasonCode, u32)>: Send,
impl<'a> Sync for CaptureRun<'a>where
RawVecInner: Sync,
Arc<Vec<Regex>>: Sync,
Arc<RegexI>: Sync,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + UnwindSafe + RefUnwindSafe + Sync + Send>>>: Sync,
Arc<str>: Sync,
RawTable<(String, Option<Vec<u8>>)>: Sync,
RawTable<(String, RefState)>: Sync,
RawTable<(String, bool)>: Sync,
RawTable<(String, ())>: Sync,
NodeRef<Owned, ReasonCode, u32, LeafOrInternal>: Sync,
BoxRaw<(ReasonCode, u32)>: Sync,
impl<'a> Unpin for CaptureRun<'a>
impl<'a> UnsafeUnpin for CaptureRun<'a>where
&'a mut Screen: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Option<Vec<u8>>)>: UnsafeUnpin,
PhantomData<(String, RefState)>: UnsafeUnpin,
PhantomData<(String, bool)>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
*const LeafNode<ReasonCode, u32> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ReasonCode, u32)>>: UnsafeUnpin,
PhantomData<Pending>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more