pub struct Context<'v, 'a> { /* private fields */ }Implementations§
Source§impl<'v, 'a> Context<'v, 'a>
impl<'v, 'a> Context<'v, 'a>
Sourcepub fn charge_work(&self, amount: u64) -> Result<(), Error>
pub fn charge_work(&self, amount: u64) -> Result<(), Error>
Charge bounded registry work too; exhaustion fails closed.
pub fn remaining_work(&self) -> u64
Sourcepub fn blocks(&self) -> impl Iterator<Item = Result<Block<'a>, Error>> + '_
pub fn blocks(&self) -> impl Iterator<Item = Result<Block<'a>, Error>> + '_
Budgeted metadata traversal for domain cross-reference validation.
pub fn block(&self, id: u32) -> Result<Block<'a>, Error>
pub fn entry(&self, id: u32) -> Result<Entry<'a>, Error>
pub fn require_schema(&self, id: u32, schema: u16) -> Result<Block<'a>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'v, 'a> !Freeze for Context<'v, 'a>
impl<'v, 'a> !RefUnwindSafe for Context<'v, 'a>
impl<'v, 'a> !Sync for Context<'v, 'a>
impl<'v, 'a> Send for Context<'v, 'a>
impl<'v, 'a> Unpin for Context<'v, 'a>
impl<'v, 'a> UnsafeUnpin for Context<'v, 'a>
impl<'v, 'a> UnwindSafe for Context<'v, 'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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