pub struct TransactionPtrBatch<'a> { /* private fields */ }👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
A batch of transaction pointers that can be iterated over.
Implementations§
Source§impl<'a> TransactionPtrBatch<'a>
impl<'a> TransactionPtrBatch<'a>
Sourcepub unsafe fn from_sharable_transaction_batch_region(
sharable_transaction_batch_region: &SharableTransactionBatchRegion,
allocator: &'a Allocator,
) -> Self
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub unsafe fn from_sharable_transaction_batch_region( sharable_transaction_batch_region: &SharableTransactionBatchRegion, allocator: &'a Allocator, ) -> Self
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.§Safety
SharableTransactionBatchRegionmust reference a valid offset and length within theallocator.- ALL
SharableTransactionRegionwithin the batch must be valid. SeeTransactionPtr::from_sharable_transaction_regionfor details.
Sourcepub fn iter(&'a self) -> impl Iterator<Item = TransactionPtr> + 'a
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn iter(&'a self) -> impl Iterator<Item = TransactionPtr> + 'a
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Iterator returning TransactionPtr for each transaction in the batch.
Sourcepub fn free(self)
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn free(self)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Free all transactions in the batch, then free the batch itself.
Auto Trait Implementations§
impl<'a> Freeze for TransactionPtrBatch<'a>
impl<'a> RefUnwindSafe for TransactionPtrBatch<'a>
impl<'a> !Send for TransactionPtrBatch<'a>
impl<'a> !Sync for TransactionPtrBatch<'a>
impl<'a> Unpin for TransactionPtrBatch<'a>
impl<'a> UnwindSafe for TransactionPtrBatch<'a>
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> 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