Struct solana_sdk::keyed_account::KeyedAccount[][src]

#[repr(C)]
pub struct KeyedAccount<'a> { pub account: &'a RefCell<AccountSharedData>, // some fields omitted }

Fields

account: &'a RefCell<AccountSharedData>

Implementations

impl<'a> KeyedAccount<'a>[src]

pub fn signer_key(&self) -> Option<&Pubkey>[src]

pub fn unsigned_key(&self) -> &Pubkey[src]

pub fn is_writable(&self) -> bool[src]

pub fn lamports(&self) -> Result<u64, InstructionError>[src]

pub fn data_len(&self) -> Result<usize, InstructionError>[src]

pub fn data_is_empty(&self) -> Result<bool, InstructionError>[src]

pub fn owner(&self) -> Result<Pubkey, InstructionError>[src]

pub fn executable(&self) -> Result<bool, InstructionError>[src]

pub fn rent_epoch(&self) -> Result<Epoch, InstructionError>[src]

pub fn try_account_ref(
    &'a self
) -> Result<Ref<'_, AccountSharedData>, InstructionError>
[src]

pub fn try_account_ref_mut(
    &'a self
) -> Result<RefMut<'_, AccountSharedData>, InstructionError>
[src]

pub fn new(
    key: &'a Pubkey,
    is_signer: bool,
    account: &'a RefCell<AccountSharedData>
) -> Self
[src]

pub fn new_readonly(
    key: &'a Pubkey,
    is_signer: bool,
    account: &'a RefCell<AccountSharedData>
) -> Self
[src]

Trait Implementations

impl<'a> Debug for KeyedAccount<'a>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a (&'a Pubkey, &'a RefCell<AccountSharedData>)> for KeyedAccount<'a>[src]

fn from(
    (key, account): &'a (&'a Pubkey, &'a RefCell<AccountSharedData>)
) -> Self
[src]

Performs the conversion.

impl<'a> From<(&'a Pubkey, &'a RefCell<AccountSharedData>)> for KeyedAccount<'a>[src]

fn from((key, account): (&'a Pubkey, &'a RefCell<AccountSharedData>)) -> Self[src]

Performs the conversion.

impl<'a> From<(&'a Pubkey, bool, &'a RefCell<AccountSharedData>)> for KeyedAccount<'a>[src]

fn from(
    (key, is_signer, account): (&'a Pubkey, bool, &'a RefCell<AccountSharedData>)
) -> Self
[src]

Performs the conversion.

impl<'a> NonceKeyedAccount for KeyedAccount<'a>[src]

fn advance_nonce_account(
    &self,
    recent_blockhashes: &RecentBlockhashes,
    signers: &HashSet<Pubkey>,
    invoke_context: &mut dyn InvokeContext
) -> Result<(), InstructionError>
[src]

fn withdraw_nonce_account(
    &self,
    lamports: u64,
    to: &KeyedAccount<'_>,
    recent_blockhashes: &RecentBlockhashes,
    rent: &Rent,
    signers: &HashSet<Pubkey>,
    invoke_context: &mut dyn InvokeContext
) -> Result<(), InstructionError>
[src]

fn initialize_nonce_account(
    &self,
    nonce_authority: &Pubkey,
    recent_blockhashes: &RecentBlockhashes,
    rent: &Rent,
    invoke_context: &mut dyn InvokeContext
) -> Result<(), InstructionError>
[src]

fn authorize_nonce_account(
    &self,
    nonce_authority: &Pubkey,
    signers: &HashSet<Pubkey>,
    invoke_context: &mut dyn InvokeContext
) -> Result<(), InstructionError>
[src]

impl<'a> PartialEq<KeyedAccount<'a>> for KeyedAccount<'a>[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a, T> State<T> for KeyedAccount<'a> where
    T: Serialize + DeserializeOwned
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for KeyedAccount<'a>

impl<'a> !Send for KeyedAccount<'a>

impl<'a> !Sync for KeyedAccount<'a>

impl<'a> Unpin for KeyedAccount<'a>

impl<'a> !UnwindSafe for KeyedAccount<'a>

Blanket Implementations

impl<T> AbiExample for T[src]

pub default fn example() -> T[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V