pub struct WatchStream { /* private fields */ }Expand description
A server-streaming changelog tail for one namespace. Call Self::recv
until it returns Ok(None); drop the stream to stop watching.
Implementations§
Source§impl WatchStream
impl WatchStream
Sourcepub async fn recv(&mut self) -> Result<Option<WatchEvent>, ReadError>
pub async fn recv(&mut self) -> Result<Option<WatchEvent>, ReadError>
Blocks until the next Watch event, Ok(None) on clean stream end, or
an error.
Auto Trait Implementations§
impl !Freeze for WatchStream
impl !RefUnwindSafe for WatchStream
impl !Sync for WatchStream
impl !UnwindSafe for WatchStream
impl Send for WatchStream
impl Unpin for WatchStream
impl UnsafeUnpin for WatchStream
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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