Struct solana_storage_bigtable::LedgerStorage [−][src]
pub struct LedgerStorage { /* fields omitted */ }
Implementations
impl LedgerStorage
[src]
impl LedgerStorage
[src]pub async fn new(read_only: bool, timeout: Option<Duration>) -> Result<Self>
[src]
pub async fn get_first_available_block(&self) -> Result<Option<Slot>>
[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]
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; if limit==0, all records in the table after start_slot will be read
pub async fn get_confirmed_block(&self, slot: Slot) -> Result<ConfirmedBlock>
[src]
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]
&self,
signature: &Signature
) -> Result<TransactionStatus>
pub async fn get_confirmed_transaction(
&self,
signature: &Signature
) -> Result<Option<ConfirmedTransaction>>
[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]
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 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<()>
[src]
&self,
slot: Slot,
confirmed_block: ConfirmedBlock
) -> Result<()>
Trait Implementations
impl Clone for LedgerStorage
[src]
impl Clone for LedgerStorage
[src]fn clone(&self) -> LedgerStorage
[src]
fn clone(&self) -> LedgerStorage
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]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
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
pub fn into_request(self) -> Request<T>
[src]Wrap the input message T
in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
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>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>
[src]
fn with_current_subscriber(self) -> WithDispatch<Self>
[src]Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more