pub struct TransactionPtrBatch<'a, M = ()> { /* private fields */ }Expand description
A batch of transaction pointers that can be iterated over.
Implementations§
Source§impl<'a, M> TransactionPtrBatch<'a, M>
impl<'a, M> TransactionPtrBatch<'a, M>
pub const TRANSACTION_CORE_SIZE: usize
pub const TRANSACTION_CORE_END: usize
pub const TRANSACTION_META_START: usize
pub const TRANSACTION_META_SIZE: usize
pub const TRANSACTION_META_END: usize
Sourcepub unsafe fn from_sharable_transaction_batch_region(
sharable_transaction_batch_region: &SharableTransactionBatchRegion,
allocator: &'a Allocator,
) -> Self
pub unsafe fn from_sharable_transaction_batch_region( sharable_transaction_batch_region: &SharableTransactionBatchRegion, allocator: &'a Allocator, ) -> Self
§Safety
SharableTransactionBatchRegionmust reference a valid offset and length within theallocator.- ALL
SharableTransactionRegionwithin the batch must be valid. SeeTransactionPtr::from_sharable_transaction_regionfor details. Mmust match the actualMused within this allocation.
Sourcepub fn iter(&'a self) -> impl Iterator<Item = (TransactionPtr, M)> + 'a
pub fn iter(&'a self) -> impl Iterator<Item = (TransactionPtr, M)> + 'a
Iterator returning TransactionPtr for each transaction in the batch.
Sourcepub unsafe fn free(self)
pub unsafe fn free(self)
Free the transaction batch container.
§Safety
SharableTransactionBatchRegionmust be exclusively owned by this pointer.
§Note
This will not free the underlying transactions as their lifetimes may be differ from that of the batch.
Auto Trait Implementations§
impl<'a, M = ()> !Send for TransactionPtrBatch<'a, M>
impl<'a, M = ()> !Sync for TransactionPtrBatch<'a, M>
impl<'a, M> Freeze for TransactionPtrBatch<'a, M>
impl<'a, M> RefUnwindSafe for TransactionPtrBatch<'a, M>
impl<'a, M> Unpin for TransactionPtrBatch<'a, M>
impl<'a, M> UnsafeUnpin for TransactionPtrBatch<'a, M>
impl<'a, M> UnwindSafe for TransactionPtrBatch<'a, M>
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