pub trait AvailabilityApi {
// Required methods
fn get_namespace_proof<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<NamespaceProofQueryData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_namespace_proof_range<'life0, 'async_trait>(
&'life0 self,
from: u64,
until: u64,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<NamespaceProofQueryData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stream_namespace_proofs<'life0, 'async_trait>(
&'life0 self,
from: usize,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, NamespaceProofQueryData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_incorrect_encoding_proof<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<AvidMIncorrectEncodingNsProof>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_state_cert<'life0, 'async_trait>(
&'life0 self,
epoch: u64,
) -> Pin<Box<dyn Future<Output = Result<StateCertQueryDataV1<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_state_cert_v2<'life0, 'async_trait>(
&'life0 self,
epoch: u64,
) -> Pin<Box<dyn Future<Output = Result<StateCertQueryDataV2<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn get_namespace_proof<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<NamespaceProofQueryData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_namespace_proof_range<'life0, 'async_trait>(
&'life0 self,
from: u64,
until: u64,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<NamespaceProofQueryData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_namespace_proofs<'life0, 'async_trait>(
&'life0 self,
from: usize,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, NamespaceProofQueryData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_incorrect_encoding_proof<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
namespace: u32,
) -> Pin<Box<dyn Future<Output = Result<AvidMIncorrectEncodingNsProof>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_state_cert<'life0, 'async_trait>(
&'life0 self,
epoch: u64,
) -> Pin<Box<dyn Future<Output = Result<StateCertQueryDataV1<SeqTypes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_state_cert_v2<'life0, 'async_trait>(
&'life0 self,
epoch: u64,
) -> Pin<Box<dyn Future<Output = Result<StateCertQueryDataV2<SeqTypes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".