pub struct PersistedAdvance { /* private fields */ }Expand description
Advance whose consumed position has been durably recorded.
Implementations§
Source§impl PersistedAdvance
impl PersistedAdvance
Sourcepub fn signed(&self) -> &SignedAdvance
pub fn signed(&self) -> &SignedAdvance
Access the signed operation metadata.
Sourcepub fn advance_instruction(&self) -> Instruction
pub fn advance_instruction(&self) -> Instruction
Build the signed Advance instruction.
Sourcepub fn transaction_instructions(
&self,
unit_limit: u32,
unit_price_micro_lamports: u64,
) -> Vec<Instruction>
pub fn transaction_instructions( &self, unit_limit: u32, unit_price_micro_lamports: u64, ) -> Vec<Instruction>
Build transaction instructions with compute-budget prefix.
Sourcepub fn default_transaction_instructions(
&self,
unit_price_micro_lamports: u64,
) -> Vec<Instruction>
pub fn default_transaction_instructions( &self, unit_price_micro_lamports: u64, ) -> Vec<Instruction>
Build transaction instructions using the SDK default compute limit.
Auto Trait Implementations§
impl Freeze for PersistedAdvance
impl RefUnwindSafe for PersistedAdvance
impl Send for PersistedAdvance
impl Sync for PersistedAdvance
impl Unpin for PersistedAdvance
impl UnsafeUnpin for PersistedAdvance
impl UnwindSafe for PersistedAdvance
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