Struct anchor_lang::CpiContext
source · [−]pub struct CpiContext<'a, 'b, 'c, 'info, T> where
T: ToAccountMetas + ToAccountInfos<'info>, {
pub accounts: T,
pub program: AccountInfo<'info>,
pub signer_seeds: &'a [&'b [&'c [u8]]],
}
Expand description
Context speciying non-argument inputs for cross-program-invocations.
Fields
accounts: T
program: AccountInfo<'info>
signer_seeds: &'a [&'b [&'c [u8]]]
Implementations
sourceimpl<'a, 'b, 'c, 'info, T> CpiContext<'a, 'b, 'c, 'info, T> where
T: ToAccountMetas + ToAccountInfos<'info>,
impl<'a, 'b, 'c, 'info, T> CpiContext<'a, 'b, 'c, 'info, T> where
T: ToAccountMetas + ToAccountInfos<'info>,
Auto Trait Implementations
impl<'a, 'b, 'c, 'info, T> !RefUnwindSafe for CpiContext<'a, 'b, 'c, 'info, T>
impl<'a, 'b, 'c, 'info, T> !Send for CpiContext<'a, 'b, 'c, 'info, T>
impl<'a, 'b, 'c, 'info, T> !Sync for CpiContext<'a, 'b, 'c, 'info, T>
impl<'a, 'b, 'c, 'info, T> Unpin for CpiContext<'a, 'b, 'c, 'info, T> where
T: Unpin,
'b: 'a,
'c: 'a,
impl<'a, 'b, 'c, 'info, T> !UnwindSafe for CpiContext<'a, 'b, 'c, 'info, T>
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more