pub struct Client { /* private fields */ }Implementations§
source§impl Client
impl Client
pub async fn create_stream(&self, stream: Stream) -> Result<Stream>
pub async fn delete_stream(
&self,
stream_name: String,
ignore_non_exist: bool,
force: bool
) -> Result<()>
pub async fn list_streams(&self) -> Result<Vec<Stream>>
pub async fn get_stream<T: Into<String>>(&self, stream_name: T) -> Result<Stream>
source§impl Client
impl Client
pub async fn create_subscription(
&self,
subscription: Subscription
) -> Result<Subscription>
pub async fn delete_subscription(
&self,
subscription_id: String,
force: bool
) -> Result<()>
pub async fn list_subscriptions(&self) -> Result<Vec<Subscription>>
pub async fn get_subscription<T: Into<String>>(
&self,
subscription_id: T
) -> Result<Subscription>
source§impl Client
impl Client
pub async fn new_producer(
&self,
stream_name: String,
compression_type: CompressionType,
flow_control_bytes_limit: Option<usize>,
flush_settings: FlushSettings,
channel_provider_settings: ChannelProviderSettings,
on_flush: Option<FlushCallback>
) -> Result<(Appender, Producer)>
source§impl Client
impl Client
pub async fn streaming_fetch(
&self,
consumer_name: String,
subscription_id: String
) -> Result<UnboundedReceiverStream<(Payload, Responder)>>
source§impl Client
impl Client
pub async fn create_shard_reader(
&self,
reader_id: String,
stream_name: String,
shard_id: ShardId,
shard_offset: StreamShardOffset,
timeout_ms: u32,
channel_provider_settings: ChannelProviderSettings
) -> Result<ShardReader>
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request