pub struct TransactionBatch<'a, 'b> { /* private fields */ }
Implementations§
source§impl<'a, 'b> TransactionBatch<'a, 'b>
impl<'a, 'b> TransactionBatch<'a, 'b>
pub fn new( lock_results: Vec<Result<()>>, bank: &'a Bank, sanitized_txs: Cow<'b, [SanitizedTransaction]>, ) -> Self
pub fn lock_results(&self) -> &Vec<Result<()>>
pub fn sanitized_transactions(&self) -> &[SanitizedTransaction]
pub fn bank(&self) -> &Bank
pub fn set_needs_unlock(&mut self, needs_unlock: bool)
pub fn needs_unlock(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for TransactionBatch<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for TransactionBatch<'a, 'b>
impl<'a, 'b> Send for TransactionBatch<'a, 'b>
impl<'a, 'b> Sync for TransactionBatch<'a, 'b>
impl<'a, 'b> Unpin for TransactionBatch<'a, 'b>
impl<'a, 'b> !UnwindSafe for TransactionBatch<'a, 'b>
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> 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