pub struct EngineContext<'a, Reused> { /* private fields */ }Implementations§
Source§impl<'a, Reused> EngineContext<'a, Reused>
impl<'a, Reused> EngineContext<'a, Reused>
Sourcepub fn with_covenants_ctx(self, covenants_ctx: &'a CovenantsContext) -> Self
pub fn with_covenants_ctx(self, covenants_ctx: &'a CovenantsContext) -> Self
Attach a covenants context to an existing engine context.
pub fn with_seq_commit_accessor( self, seq_commit_accessor: &'a dyn SeqCommitAccessor, ) -> Self
pub fn with_seq_commit_accessor_opt( self, seq_commit_accessor: Option<&'a dyn SeqCommitAccessor>, ) -> Self
Source§impl<'a> EngineContext<'a, MissingReusedValues>
impl<'a> EngineContext<'a, MissingReusedValues>
Sourcepub fn new(sig_cache: &'a Cache<SigCacheKey, bool>) -> Self
pub fn new(sig_cache: &'a Cache<SigCacheKey, bool>) -> Self
Create a context without bound reused values, using an empty covenants context.
Sourcepub fn with_reused<New: SigHashReusedValues>(
self,
reused_values: &'a New,
) -> EngineContext<'a, New>
pub fn with_reused<New: SigHashReusedValues>( self, reused_values: &'a New, ) -> EngineContext<'a, New>
Upgrade the context by binding concrete sig-hash reused values (one-way).
Trait Implementations§
Source§impl<'a, Reused: SigHashReusedValues> Clone for EngineContext<'a, Reused>
impl<'a, Reused: SigHashReusedValues> Clone for EngineContext<'a, Reused>
impl<'a, Reused: SigHashReusedValues> Copy for EngineContext<'a, Reused>
Auto Trait Implementations§
impl<'a, Reused> !RefUnwindSafe for EngineContext<'a, Reused>
impl<'a, Reused> !UnwindSafe for EngineContext<'a, Reused>
impl<'a, Reused> Freeze for EngineContext<'a, Reused>where
&'a Reused: Freeze,
impl<'a, Reused> Send for EngineContext<'a, Reused>where
&'a Reused: Send,
impl<'a, Reused> Sync for EngineContext<'a, Reused>where
&'a Reused: Sync,
impl<'a, Reused> Unpin for EngineContext<'a, Reused>where
&'a Reused: Unpin,
impl<'a, Reused> UnsafeUnpin for EngineContext<'a, Reused>where
&'a Reused: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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