pub struct SyscallInvokeSignedRust {}๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Cross-program invocation called from Rust
Implementationsยง
Sourceยงimpl SyscallInvokeSignedRust
impl SyscallInvokeSignedRust
Sourcepub fn rust(
invoke_context: &mut InvokeContext<'_, '_>,
instruction_addr: u64,
account_infos_addr: u64,
account_infos_len: u64,
signers_seeds_addr: u64,
signers_seeds_len: u64,
memory_mapping: &mut MemoryMapping<'_>,
) -> Result<u64, Box<dyn Error>>
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn rust( invoke_context: &mut InvokeContext<'_, '_>, instruction_addr: u64, account_infos_addr: u64, account_infos_len: u64, signers_seeds_addr: u64, signers_seeds_len: u64, memory_mapping: &mut MemoryMapping<'_>, ) -> Result<u64, Box<dyn Error>>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Rust interface
Sourcepub fn vm(
invoke_context: *mut EbpfVm<'_, InvokeContext<'_, '_>>,
instruction_addr: u64,
account_infos_addr: u64,
account_infos_len: u64,
signers_seeds_addr: u64,
signers_seeds_len: u64,
)
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn vm( invoke_context: *mut EbpfVm<'_, InvokeContext<'_, '_>>, instruction_addr: u64, account_infos_addr: u64, account_infos_len: u64, signers_seeds_addr: u64, signers_seeds_len: u64, )
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.VM interface
Trait Implementationsยง
Sourceยงimpl SyscallInvokeSigned for SyscallInvokeSignedRust
impl SyscallInvokeSigned for SyscallInvokeSignedRust
fn translate_instruction( addr: u64, memory_mapping: &MemoryMapping<'_>, invoke_context: &mut InvokeContext<'_, '_>, check_aligned: bool, ) -> Result<Instruction, Box<dyn Error>>
fn translate_accounts<'a>( account_infos_addr: u64, account_infos_len: u64, memory_mapping: &MemoryMapping<'_>, invoke_context: &mut InvokeContext<'_, '_>, check_aligned: bool, ) -> Result<Vec<TranslatedAccount<'a>>, Box<dyn Error>>
fn translate_signers( program_id: &Pubkey, signers_seeds_addr: u64, signers_seeds_len: u64, memory_mapping: &MemoryMapping<'_>, check_aligned: bool, ) -> Result<Vec<Pubkey>, Box<dyn Error>>
Auto Trait Implementationsยง
impl Freeze for SyscallInvokeSignedRust
impl RefUnwindSafe for SyscallInvokeSignedRust
impl Send for SyscallInvokeSignedRust
impl Sync for SyscallInvokeSignedRust
impl Unpin for SyscallInvokeSignedRust
impl UnsafeUnpin for SyscallInvokeSignedRust
impl UnwindSafe for SyscallInvokeSignedRust
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> 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