Struct solana_storage_bigtable::LedgerStorage [−][src]
Implementations
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]
Return the available slot that contains a block
pub async fn get_confirmed_blocks(
&self,
start_slot: Slot,
limit: usize
) -> Result<Vec<Slot>>
[src]
&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
pub async fn get_confirmed_block(&self, slot: Slot) -> Result<ConfirmedBlock>
[src]
Fetch the confirmed block from the desired slot
pub async fn get_confirmed_block_hash(&self, slot: Slot) -> Result<String>
[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]
&self,
signature: &Signature
) -> Result<Option<ConfirmedTransaction>>
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]
&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<()>
[src]
&self,
slot: Slot,
confirmed_block: ConfirmedBlock
) -> Result<()>
pub async fn get_evm_first_available_block(&self) -> Result<Option<BlockNum>>
[src]
Return the available slot that contains a block
pub async fn get_evm_confirmed_blocks(
&self,
start_block: BlockNum,
limit: usize
) -> Result<Vec<BlockNum>>
[src]
&self,
start_block: BlockNum,
limit: usize
) -> Result<Vec<BlockNum>>
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_evm_block_by_hash(&self, block_hash: H256) -> Result<BlockNum>
[src]
pub async fn get_evm_confirmed_block_header(
&self,
block_num: BlockNum
) -> Result<BlockHeader>
[src]
&self,
block_num: BlockNum
) -> Result<BlockHeader>
Fetch the confirmed block from the desired slot
pub async fn get_evm_confirmed_full_block(
&self,
block_num: BlockNum
) -> Result<Block>
[src]
&self,
block_num: BlockNum
) -> Result<Block>
pub async fn get_evm_confirmed_receipt(
&self,
hash: &H256
) -> Result<Option<TransactionReceipt>>
[src]
&self,
hash: &H256
) -> Result<Option<TransactionReceipt>>
Fetch a confirmed transaction
pub async fn upload_evm_block(
&self,
block_num: BlockNum,
full_block: Block
) -> Result<()>
[src]
&self,
block_num: BlockNum,
full_block: Block
) -> Result<()>
Trait Implementations
impl Clone for LedgerStorage
[src]
fn clone(&self) -> LedgerStorage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,