pub struct StackFrame<'a> {
pub number_of_program_accounts: usize,
pub keyed_accounts: Vec<KeyedAccount<'a>>,
pub keyed_accounts_range: Range<usize>,
}
๐Deprecated since 1.11.0: Please use InstructionContext instead of StackFrame
Fieldsยง
ยงnumber_of_program_accounts: usize
๐Deprecated since 1.11.0: Please use InstructionContext instead of StackFrame
ยงkeyed_accounts: Vec<KeyedAccount<'a>>
๐Deprecated since 1.11.0: Please use InstructionContext instead of StackFrame
ยงkeyed_accounts_range: Range<usize>
๐Deprecated since 1.11.0: Please use InstructionContext instead of StackFrame
Implementationsยง
Sourceยงimpl<'a> StackFrame<'a>
impl<'a> StackFrame<'a>
pub fn new( number_of_program_accounts: usize, keyed_accounts: Vec<KeyedAccount<'a>>, ) -> Self
pub fn program_id(&self) -> Option<&Pubkey>
Auto Trait Implementationsยง
impl<'a> Freeze for StackFrame<'a>
impl<'a> !RefUnwindSafe for StackFrame<'a>
impl<'a> !Send for StackFrame<'a>
impl<'a> !Sync for StackFrame<'a>
impl<'a> Unpin for StackFrame<'a>
impl<'a> !UnwindSafe for StackFrame<'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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยง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