Struct etcd_client::Watcher
source · pub struct Watcher { /* private fields */ }
Expand description
The watching handle.
Implementations§
source§impl Watcher
impl Watcher
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>
Watches for events happening or that have happened.
sourcepub async fn cancel_by_id(&mut self, watch_id: i64) -> Result<(), Error>
pub async fn cancel_by_id(&mut self, watch_id: i64) -> Result<(), Error>
Cancels watch by specified watch_id
.
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Watcher
impl !RefUnwindSafe for Watcher
impl Send for Watcher
impl Sync for Watcher
impl Unpin for Watcher
impl !UnwindSafe for Watcher
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