pub struct CallerAccount<'a> {
pub lamports: &'a mut u64,
pub owner: &'a mut Pubkey,
pub original_data_len: usize,
pub serialized_data: &'a mut [u8],
pub vm_data_addr: u64,
pub ref_to_len_in_vm: &'a mut 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.Expand description
Host side representation of AccountInfo or SolAccountInfo passed to the CPI syscall.
At the start of a CPI, this can be different from the data stored in the corresponding BorrowedAccount, and needs to be synched.
Fields§
§lamports: &'a mut 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.owner: &'a mut Pubkey👎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.original_data_len: usize👎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.serialized_data: &'a mut [u8]👎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.vm_data_addr: 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.ref_to_len_in_vm: &'a mut 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.Implementations§
Source§impl<'a> CallerAccount<'a>
impl<'a> CallerAccount<'a>
pub fn get_serialized_data( memory_mapping: &MemoryMapping<'_>, vm_addr: u64, len: u64, stricter_abi_and_runtime_constraints: bool, account_data_direct_mapping: bool, ) -> Result<&'a mut [u8], 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 from_account_info( invoke_context: &InvokeContext<'_, '_>, memory_mapping: &MemoryMapping<'_>, check_aligned: bool, _vm_addr: u64, account_info: &AccountInfo<'_>, account_metadata: &SerializedAccountMetadata, ) -> Result<CallerAccount<'a>, 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.Auto Trait Implementations§
impl<'a> Freeze for CallerAccount<'a>
impl<'a> RefUnwindSafe for CallerAccount<'a>
impl<'a> Send for CallerAccount<'a>
impl<'a> Sync for CallerAccount<'a>
impl<'a> Unpin for CallerAccount<'a>
impl<'a> !UnwindSafe for CallerAccount<'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> 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