pub struct TransactionBatch<'a, 'b, Tx: SVMMessage> { /* private fields */ }
Implementations§
Source§impl<'a, 'b, Tx: SVMMessage> TransactionBatch<'a, 'b, Tx>
impl<'a, 'b, Tx: SVMMessage> TransactionBatch<'a, 'b, Tx>
pub fn new( lock_results: Vec<Result<()>>, bank: &'a Bank, sanitized_txs: OwnedOrBorrowed<'b, Tx>, ) -> Self
pub fn lock_results(&self) -> &Vec<Result<()>>
pub fn sanitized_transactions(&self) -> &[Tx]
pub fn bank(&self) -> &Bank
pub fn set_needs_unlock(&mut self, needs_unlock: bool)
pub fn needs_unlock(&self) -> bool
Sourcepub fn unlock_failures(&mut self, transaction_results: Vec<Result<()>>)
pub fn unlock_failures(&mut self, transaction_results: Vec<Result<()>>)
For every error result, if the corresponding transaction is still locked, unlock the transaction and then record the new error.
Trait Implementations§
Source§impl<'a, 'b, Tx: SVMMessage> Drop for TransactionBatch<'a, 'b, Tx>
impl<'a, 'b, Tx: SVMMessage> Drop for TransactionBatch<'a, 'b, Tx>
Auto Trait Implementations§
impl<'a, 'b, Tx> Freeze for TransactionBatch<'a, 'b, Tx>
impl<'a, 'b, Tx> !RefUnwindSafe for TransactionBatch<'a, 'b, Tx>
impl<'a, 'b, Tx> Send for TransactionBatch<'a, 'b, Tx>
impl<'a, 'b, Tx> Sync for TransactionBatch<'a, 'b, Tx>where
Tx: Sync,
impl<'a, 'b, Tx> Unpin for TransactionBatch<'a, 'b, Tx>where
Tx: Unpin,
impl<'a, 'b, Tx> !UnwindSafe for TransactionBatch<'a, 'b, Tx>
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