Struct solana_storage_bigtable::LedgerStorage
source · [−]pub struct LedgerStorage { /* private fields */ }
Implementations
sourceimpl LedgerStorage
impl LedgerStorage
pub async fn new(
read_only: bool,
timeout: Option<Duration>,
credential_path: Option<String>
) -> Result<Self>
sourcepub async fn get_first_available_block(&self) -> Result<Option<Slot>>
pub async fn get_first_available_block(&self) -> Result<Option<Slot>>
Return the available slot that contains a block
sourcepub async fn get_confirmed_blocks(
&self,
start_slot: Slot,
limit: usize
) -> Result<Vec<Slot>>
pub async fn get_confirmed_blocks(
&self,
start_slot: Slot,
limit: usize
) -> Result<Vec<Slot>>
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; if limit==0, all records in the table after start_slot will be read
sourcepub async fn get_confirmed_block(
&self,
slot: Slot
) -> Result<ConfirmedBlockWithOptionalMetadata>
pub async fn get_confirmed_block(
&self,
slot: Slot
) -> Result<ConfirmedBlockWithOptionalMetadata>
Fetch the confirmed block from the desired slot
pub async fn get_signature_status(
&self,
signature: &Signature
) -> Result<TransactionStatus>
sourcepub async fn get_confirmed_transaction(
&self,
signature: &Signature
) -> Result<Option<ConfirmedTransactionWithOptionalMetadata>>
pub async fn get_confirmed_transaction(
&self,
signature: &Signature
) -> Result<Option<ConfirmedTransactionWithOptionalMetadata>>
Fetch a confirmed transaction
sourcepub async fn get_confirmed_signatures_for_address(
&self,
address: &Pubkey,
before_signature: Option<&Signature>,
until_signature: Option<&Signature>,
limit: usize
) -> Result<Vec<(ConfirmedTransactionStatusWithSignature, u32)>>
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)>>
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 until_signature: end with the last signature more recent than this one limit: stop after this many signatures; if limit==0, all records in the table will be read
pub async fn upload_confirmed_block(
&self,
slot: Slot,
confirmed_block: ConfirmedBlock
) -> Result<()>
pub async fn delete_confirmed_block(
&self,
slot: Slot,
dry_run: bool
) -> Result<()>
Trait Implementations
sourceimpl Clone for LedgerStorage
impl Clone for LedgerStorage
sourcefn clone(&self) -> LedgerStorage
fn clone(&self) -> LedgerStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for LedgerStorage
impl Send for LedgerStorage
impl Sync for LedgerStorage
impl Unpin for LedgerStorage
impl !UnwindSafe for LedgerStorage
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more