#[repr(u8)]pub enum PadInstruction {
Noop = 0,
Wrap = 1,
}
Expand description
Instructions supported by the padding program, which takes in additional account data or accounts and does nothing with them. It’s meant for testing larger transactions with bench-tps.
Variants§
Noop = 0
Does no work, but accepts a large amount of data and accounts
Wrap = 1
Wraps the provided instruction, calling the provided program via CPI
Accounts expected by this instruction:
- All accounts required for the inner instruction
- The program invoked by the inner instruction
- Additional padding accounts
Data expected by this instruction:
- WrapData
Trait Implementations§
Source§impl Clone for PadInstruction
impl Clone for PadInstruction
Source§fn clone(&self) -> PadInstruction
fn clone(&self) -> PadInstruction
Returns a duplicate 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 PadInstruction
impl Debug for PadInstruction
Source§impl From<PadInstruction> for u8
impl From<PadInstruction> for u8
Source§fn from(enum_value: PadInstruction) -> Self
fn from(enum_value: PadInstruction) -> Self
Converts to this type from the input type.
Source§impl TryFrom<u8> for PadInstruction
impl TryFrom<u8> for PadInstruction
Source§type Error = TryFromPrimitiveError<PadInstruction>
type Error = TryFromPrimitiveError<PadInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PadInstruction
impl TryFromPrimitive for PadInstruction
const NAME: &'static str = "PadInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<PadInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PadInstruction
Auto Trait Implementations§
impl Freeze for PadInstruction
impl RefUnwindSafe for PadInstruction
impl Send for PadInstruction
impl Sync for PadInstruction
impl Unpin for PadInstruction
impl UnwindSafe for PadInstruction
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