[][src]Struct solana_storage_bigtable::LedgerStorage

pub struct LedgerStorage { /* fields omitted */ }

Implementations

impl LedgerStorage[src]

pub async fn new(read_only: bool) -> Result<Self>[src]

pub async fn get_first_available_block<'_>(&'_ self) -> Result<Option<Slot>>[src]

Return the available slot that contains a block

pub async fn get_confirmed_blocks<'_>(
    &'_ self,
    start_slot: Slot,
    limit: usize
) -> Result<Vec<Slot>>
[src]

Fetch the next slots after the provided slot that contains a block

start_slot: slot to start the search from (inclusive) limit: stop after this many slots have been found.

pub async fn get_confirmed_block<'_>(
    &'_ self,
    slot: Slot
) -> Result<ConfirmedBlock>
[src]

Fetch the confirmed block from the desired slot

pub async fn get_signature_status<'_, '_>(
    &'_ self,
    signature: &'_ Signature
) -> Result<TransactionStatus>
[src]

pub async fn get_confirmed_transaction<'_, '_>(
    &'_ self,
    signature: &'_ Signature
) -> Result<Option<ConfirmedTransaction>>
[src]

Fetch a confirmed transaction

pub async fn get_confirmed_signatures_for_address<'_, '_, '_, '_>(
    &'_ self,
    address: &'_ Pubkey,
    before_signature: Option<&'_ Signature>,
    until_signature: Option<&'_ Signature>,
    limit: usize
) -> Result<Vec<(ConfirmedTransactionStatusWithSignature, u32)>>
[src]

Get confirmed signatures for the provided address, in descending ledger order

address: address to search for before_signature: start with the first signature older than this one limit: stop after this many signatures.

pub async fn upload_confirmed_block<'_>(
    &'_ self,
    slot: Slot,
    confirmed_block: ConfirmedBlock
) -> Result<()>
[src]

Trait Implementations

impl Clone for LedgerStorage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

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

impl<T> WithSubscriber for T[src]