pub struct StreamingServiceClient { /* private fields */ }Expand description
The streaming service client that talks to the streaming service.
Implementations
sourceimpl StreamingServiceClient
impl StreamingServiceClient
pub fn new(request_sender: UnboundedSender<StreamRequestMessage>) -> Self
Trait Implementations
sourceimpl Clone for StreamingServiceClient
impl Clone for StreamingServiceClient
sourcefn clone(&self) -> StreamingServiceClient
fn clone(&self) -> StreamingServiceClient
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
sourceimpl DataStreamingClient for StreamingServiceClient
impl DataStreamingClient for StreamingServiceClient
sourcefn get_all_accounts<'life0, 'async_trait>(
&'life0 self,
version: u64,
start_index: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_all_accounts<'life0, 'async_trait>(
&'life0 self,
version: u64,
start_index: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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
sourcefn 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
sourcefn get_all_transaction_outputs<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
end_version: u64,
proof_version: u64
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_all_transaction_outputs<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
end_version: u64,
proof_version: u64
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Fetches all transaction outputs with proofs from start_version to
end_version (inclusive) at the specified proof_version. Read more
sourcefn get_all_transactions<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
end_version: u64,
proof_version: u64,
include_events: bool
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_all_transactions<'life0, 'async_trait>(
&'life0 self,
start_version: u64,
end_version: u64,
proof_version: u64,
include_events: bool
) -> Pin<Box<dyn Future<Output = Result<DataStreamListener, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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
sourcefn continuously_stream_transaction_outputs<'life0, 'async_trait>(
&'life0 self,
known_version: u64,
known_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,
known_version: u64,
known_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 known_version + 1 (inclusive) and
known_epoch, where the known_epoch is expected to be the epoch
that contains known_version + 1, i.e., any epoch change at
known_version must be noted by the client.
Transaction output proof versions are tied to ledger infos within the
same epoch, otherwise epoch ending ledger infos will signify epoch changes. Read more
sourcefn continuously_stream_transactions<'life0, 'async_trait>(
&'life0 self,
known_version: u64,
known_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,
known_version: u64,
known_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 known_version + 1 (inclusive) and
known_epoch, where the known_epoch is expected to be the epoch
that contains known_version + 1, i.e., any epoch change at
known_version must be noted by the client.
Transaction proof versions are tied to ledger infos within the
same epoch, otherwise epoch ending ledger infos will signify epoch changes. Read more
sourcefn terminate_stream_with_feedback<'life0, 'async_trait>(
&'life0 self,
notification_id: u64,
notification_feedback: NotificationFeedback
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn terminate_stream_with_feedback<'life0, 'async_trait>(
&'life0 self,
notification_id: u64,
notification_feedback: NotificationFeedback
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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
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>
impl<T> Pointable for T
impl<T> Pointable for T
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