[][src]Enum solana_sdk::loader_instruction::LoaderInstruction

pub enum LoaderInstruction {
    Write {
        offset: u32,
        bytes: Vec<u8>,
    },
    Finalize,
}

Variants

Write

Write program data into an account

  • key[0] - the account to write into.

The transaction must be signed by key[0]

Fields of Write

offset: u32bytes: Vec<u8>
Finalize

Finalize an account loaded with program data for execution. The exact preparation steps is loader specific but on success the loader must set the executable bit of the Account

  • key[0] - the account to prepare for execution
  • key[1] - rent sysvar account

The transaction must be signed by key[0]

Trait Implementations

impl Clone for LoaderInstruction[src]

impl Debug for LoaderInstruction[src]

impl<'de> Deserialize<'de> for LoaderInstruction[src]

impl Eq for LoaderInstruction[src]

impl PartialEq<LoaderInstruction> for LoaderInstruction[src]

impl Serialize for LoaderInstruction[src]

impl StructuralEq for LoaderInstruction[src]

impl StructuralPartialEq for LoaderInstruction[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.