pub struct TraceSubscribeClient { /* private fields */ }Implementations§
Source§impl TraceSubscribeClient
impl TraceSubscribeClient
Sourcepub async fn new(
sender: Sender,
cancellation_token: CancellationToken,
address: String,
) -> Result<(Self, impl Future<Output = Result<()>>)>
pub async fn new( sender: Sender, cancellation_token: CancellationToken, address: String, ) -> Result<(Self, impl Future<Output = Result<()>>)>
Create a new TraceSubscribeClient and connect to the given address.
Sourcepub async fn subscribe(
&self,
filter: Option<String>,
start_time: Option<i64>,
) -> Result<()>
pub async fn subscribe( &self, filter: Option<String>, start_time: Option<i64>, ) -> Result<()>
Send a subscribe command with the given filter and start time
Sourcepub async fn unsubscribe(&self, filter: Option<String>) -> Result<()>
pub async fn unsubscribe(&self, filter: Option<String>) -> Result<()>
Send an unsubscribe command with the given filter
Sourcepub async fn subscribe_all(&self) -> Result<()>
pub async fn subscribe_all(&self) -> Result<()>
Send a subscribe command with a blank filter
Sourcepub async fn unsubscribe_all(&self) -> Result<()>
pub async fn unsubscribe_all(&self) -> Result<()>
Send an unsubscribe command with a blank filter
Auto Trait Implementations§
impl Freeze for TraceSubscribeClient
impl RefUnwindSafe for TraceSubscribeClient
impl Send for TraceSubscribeClient
impl Sync for TraceSubscribeClient
impl Unpin for TraceSubscribeClient
impl UnsafeUnpin for TraceSubscribeClient
impl UnwindSafe for TraceSubscribeClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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