pub struct WatchRequestSender(/* private fields */);Expand description
The sender for sending watch requests in the existing watch stream.
The watch request can be sending using the WatchStream or the WatchRequestSender.
The WatchRequestSender can be obtained by splitting the WatchStream using the
WatchStream::split method.
Implementations§
Source§impl WatchRequestSender
impl WatchRequestSender
Sourcepub async fn watch(
&mut self,
key: impl Into<Vec<u8>>,
options: Option<WatchOptions>,
) -> Result<(), Error>
pub async fn watch( &mut self, key: impl Into<Vec<u8>>, options: Option<WatchOptions>, ) -> Result<(), Error>
Send watch request in the existing watch stream.
See also WatchStream::watch for sending watch request using WatchStream.
Sourcepub async fn cancel(&mut self, watch_id: i64) -> Result<(), Error>
pub async fn cancel(&mut self, watch_id: i64) -> Result<(), Error>
Cancels watch by specified watch_id.
See also WatchStream::cancel for canceling watch using WatchStream.
Sourcepub async fn request_progress(&mut self) -> Result<(), Error>
pub async fn request_progress(&mut self) -> Result<(), Error>
Requests a watch stream progress status be sent in the watch response stream as soon as possible.
See also WatchStream::request_progress for requesting watch stream progress status
using WatchStream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WatchRequestSender
impl RefUnwindSafe for WatchRequestSender
impl Send for WatchRequestSender
impl Sync for WatchRequestSender
impl Unpin for WatchRequestSender
impl UnsafeUnpin for WatchRequestSender
impl UnwindSafe for WatchRequestSender
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