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

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

Variants

Write

Write program data into an account

Account references

  1. [WRITE, SIGNER] Account to write to

Fields of Write

offset: u32

Offset at which to write the given bytes

bytes: Vec<u8, Global>

Serialized program data

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.

Account references

  1. [WRITE, SIGNER] The account to prepare for execution
  2. [] Rent sysvar

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

impl RefUnwindSafe for LoaderInstruction

impl Send for LoaderInstruction

impl Sync for LoaderInstruction

impl Unpin for LoaderInstruction

impl UnwindSafe for LoaderInstruction

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: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

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

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.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]