pub struct IntrospectedInstruction<'a> { /* private fields */ }Expand description
Typed borrowed view over one instruction inside the Instructions sysvar.
Implementations§
Source§impl<'a> IntrospectedInstruction<'a>
impl<'a> IntrospectedInstruction<'a>
Sourcepub const fn account_count(&self) -> usize
pub const fn account_count(&self) -> usize
Number of account metas in this instruction.
Sourcepub fn program_id(&self) -> Address
pub fn program_id(&self) -> Address
Instruction program id.
Sourcepub fn instruction_data(&self) -> &'a [u8]
pub fn instruction_data(&self) -> &'a [u8]
Instruction data bytes.
Sourcepub fn account(
&self,
index: usize,
) -> Result<Option<InstructionAccountMeta>, ProgramError>
pub fn account( &self, index: usize, ) -> Result<Option<InstructionAccountMeta>, ProgramError>
Read account meta index.
Auto Trait Implementations§
impl<'a> Freeze for IntrospectedInstruction<'a>
impl<'a> RefUnwindSafe for IntrospectedInstruction<'a>
impl<'a> Send for IntrospectedInstruction<'a>
impl<'a> Sync for IntrospectedInstruction<'a>
impl<'a> Unpin for IntrospectedInstruction<'a>
impl<'a> UnsafeUnpin for IntrospectedInstruction<'a>
impl<'a> UnwindSafe for IntrospectedInstruction<'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