[][src]Struct solana_storage_program::storage_contract::StorageAccount

pub struct StorageAccount<'a> { /* fields omitted */ }

Implementations

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

pub fn new(id: Pubkey, account: &'a mut Account) -> Self[src]

pub fn initialize_storage(
    &mut self,
    owner: Pubkey,
    account_type: StorageAccountType
) -> Result<(), InstructionError>
[src]

pub fn submit_mining_proof(
    &mut self,
    sha_state: Hash,
    segment_index: u64,
    signature: Signature,
    blockhash: Hash,
    clock: Clock
) -> Result<(), InstructionError>
[src]

[src]

pub fn proof_validation(
    &mut self,
    me: &Pubkey,
    clock: Clock,
    segment_index: u64,
    proofs_per_account: Vec<Vec<ProofStatus>>,
    archiver_accounts: &mut [StorageAccount]
) -> Result<(), InstructionError>
[src]

pub fn claim_storage_reward(
    &mut self,
    rewards_pool: &KeyedAccount,
    clock: Clock,
    rewards: Rewards,
    owner: &mut StorageAccount
) -> Result<(), InstructionError>
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for StorageAccount<'a>

impl<'a> Send for StorageAccount<'a>

impl<'a> Sync for StorageAccount<'a>

impl<'a> Unpin for StorageAccount<'a>

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

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> 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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,