pub struct ScopedWatch { /* private fields */ }Expand description
A single held request. No reconnect or resubscribe is performed automatically.
Drop or stop cancels it; drain notices with next before awaiting closed.
Implementations§
Source§impl ScopedWatch
impl ScopedWatch
pub async fn next(&mut self) -> Option<ScopedWatchNotice>
pub fn stop(&mut self)
pub async fn closed(&mut self) -> ScopedWatchOutcome
Trait Implementations§
Source§impl Drop for ScopedWatch
Available on crate feature transport only.
impl Drop for ScopedWatch
Available on crate feature
transport only.Auto Trait Implementations§
impl !RefUnwindSafe for ScopedWatch
impl !UnwindSafe for ScopedWatch
impl Freeze for ScopedWatch
impl Send for ScopedWatch
impl Sync for ScopedWatch
impl Unpin for ScopedWatch
impl UnsafeUnpin for ScopedWatch
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