pub struct TransactionGroup { /* private fields */ }
Expand description
Transaction Group.
Implementations§
Source§impl TransactionGroup
impl TransactionGroup
Sourcepub fn with_options_and_luts(
options: TransactionGroupOptions,
luts: AddressLookupTables,
) -> Self
pub fn with_options_and_luts( options: TransactionGroupOptions, luts: AddressLookupTables, ) -> Self
Create with the given TransactionGroupOptions
and AddressLookupTables
.
Sourcepub fn validate_instruction_group(&self, group: &ParallelGroup) -> Result<()>
pub fn validate_instruction_group(&self, group: &ParallelGroup) -> Result<()>
Returns Ok
if the given ParallelGroup
can be added without error.
Sourcepub fn add(&mut self, group: impl Into<ParallelGroup>) -> Result<&mut Self>
pub fn add(&mut self, group: impl Into<ParallelGroup>) -> Result<&mut Self>
Add a ParallelGroup
.
Sourcepub fn optimize(&mut self, allow_payer_change: bool) -> &mut Self
pub fn optimize(&mut self, allow_payer_change: bool) -> &mut Self
Optimize the transactions by repacking instructions to maximize space efficiency.
Sourcepub fn to_transactions<'a, C: Signer>(
&'a self,
signers: &'a TransactionSigners<C>,
recent_blockhash: Hash,
allow_partial_sign: bool,
) -> TransactionGroupIter<'a, C> ⓘ
pub fn to_transactions<'a, C: Signer>( &'a self, signers: &'a TransactionSigners<C>, recent_blockhash: Hash, allow_partial_sign: bool, ) -> TransactionGroupIter<'a, C> ⓘ
Build transactions.
Trait Implementations§
Source§impl Clone for TransactionGroup
impl Clone for TransactionGroup
Source§fn clone(&self) -> TransactionGroup
fn clone(&self) -> TransactionGroup
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransactionGroup
impl Debug for TransactionGroup
Source§impl Default for TransactionGroup
impl Default for TransactionGroup
Source§fn default() -> TransactionGroup
fn default() -> TransactionGroup
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactionGroup
impl !RefUnwindSafe for TransactionGroup
impl !Send for TransactionGroup
impl !Sync for TransactionGroup
impl Unpin for TransactionGroup
impl !UnwindSafe for TransactionGroup
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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