Struct data_streaming_service::streaming_client::StreamingServiceClient [−][src]
pub struct StreamingServiceClient { /* fields omitted */ }Expand description
The streaming service client that talks to the streaming service.
Implementations
Trait Implementations
Fetches the account states at the specified version. If start_index
is specified, the account states will be fetched starting at the
start_index (inclusive). Otherwise, the start index will 0.
The specified version must be an epoch ending version, otherwise an
error will be returned. Account state proofs are at the same version. Read more
fn get_all_epoch_ending_ledger_infos<'life0, 'async_trait>(
&'life0 self,
start_epoch: u64
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_all_epoch_ending_ledger_infos<'life0, 'async_trait>(
&'life0 self,
start_epoch: u64
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Fetches all epoch ending ledger infos starting at start_epoch
(inclusive) and ending at the last known epoch advertised in the network. Read more
Fetches all transaction outputs with proofs from start_version to
end_version (inclusive) at the specified proof_version. Read more
Fetches all transactions with proofs from start_version to
end_version (inclusive) at the specified proof_version. If
include_events is true, events are also included in the proofs. Read more
fn continuously_stream_transaction_outputs<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
start_epoch: u64,
target: Option<LedgerInfoWithSignatures>
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn continuously_stream_transaction_outputs<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
start_epoch: u64,
target: Option<LedgerInfoWithSignatures>
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Continuously streams transaction outputs with proofs as the blockchain
grows. The stream starts at start_version and start_epoch (inclusive).
Transaction output proof versions are tied to ledger infos within the
same epoch, otherwise epoch ending ledger infos will signify epoch changes. Read more
fn continuously_stream_transactions<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
start_epoch: u64,
include_events: bool,
target: Option<LedgerInfoWithSignatures>
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn continuously_stream_transactions<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
start_epoch: u64,
include_events: bool,
target: Option<LedgerInfoWithSignatures>
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Continuously streams transactions with proofs as the blockchain grows.
The stream starts at start_version and start_epoch (inclusive).
Transaction proof versions are tied to ledger infos within the same
epoch, otherwise epoch ending ledger infos will signify epoch changes.
If include_events is true, events are also included in the proofs. Read more
Terminates the stream that sent the notification with the given
notification_id and provides feedback for the termination reason. Read more
Auto Trait Implementations
impl !RefUnwindSafe for StreamingServiceClient
impl Send for StreamingServiceClient
impl Sync for StreamingServiceClient
impl Unpin for StreamingServiceClient
impl !UnwindSafe for StreamingServiceClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self