Struct diem_sdk::client::stream::StreamingClient [−][src]
pub struct StreamingClient { /* fields omitted */ }
Expand description
This API is experimental and subject to change Documentation is in /json-rpc/src/stream_rpc/README.md
Implementations
pub async fn new<T>(
url: T,
config: StreamingClientConfig,
websocket_config: Option<WebSocketConfig>
) -> Result<StreamingClient, StreamError> where
T: Into<String>,
pub async fn subscribe_transactions(
&'_ mut self,
starting_version: u64,
include_events: Option<bool>
) -> Result<SubscriptionStream, StreamError>
pub async fn subscribe_events(
&'_ mut self,
event_key: EventKey,
event_seq_num: u64
) -> Result<SubscriptionStream, StreamError>
pub async fn send_subscription(
&'_ mut self,
request: StreamMethodRequest
) -> Result<SubscriptionStream, StreamError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StreamingClient
impl Send for StreamingClient
impl Sync for StreamingClient
impl Unpin for StreamingClient
impl !UnwindSafe for StreamingClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more