pub struct ExecutedObligation {
pub executed: u32,
}Expand description
Proof that at least one obligation actually executed. The only public constructor refuses a zero count, so a caller can never manufacture a witness for work that did not run.
Fields§
§executed: u32How many obligations actually ran.
Implementations§
Source§impl ExecutedObligation
impl ExecutedObligation
Sourcepub fn record(executed: u32) -> Option<ExecutedObligation>
pub fn record(executed: u32) -> Option<ExecutedObligation>
Records a witness for executed completed obligations, refusing a
zero count.
Trait Implementations§
Source§impl Clone for ExecutedObligation
impl Clone for ExecutedObligation
impl Copy for ExecutedObligation
Source§impl Debug for ExecutedObligation
impl Debug for ExecutedObligation
impl Eq for ExecutedObligation
Source§impl PartialEq for ExecutedObligation
impl PartialEq for ExecutedObligation
impl StructuralPartialEq for ExecutedObligation
Auto Trait Implementations§
impl Freeze for ExecutedObligation
impl RefUnwindSafe for ExecutedObligation
impl Send for ExecutedObligation
impl Sync for ExecutedObligation
impl Unpin for ExecutedObligation
impl UnsafeUnpin for ExecutedObligation
impl UnwindSafe for ExecutedObligation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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