pub struct WatchOptions {
pub filter: Option<Arc<dyn Fn(&[String]) -> bool + Send + Sync>>,
pub empty_timeout: Option<Duration>,
}Fields§
§filter: Option<Arc<dyn Fn(&[String]) -> bool + Send + Sync>>Takes only the namespaces it returns true for.
empty_timeout: Option<Duration>watch_broadcasts returns once no namespace has been published for
this long, counted from the start or from the last withdrawal.
Trait Implementations§
Source§impl Clone for WatchOptions
impl Clone for WatchOptions
Auto Trait Implementations§
impl !RefUnwindSafe for WatchOptions
impl !UnwindSafe for WatchOptions
impl Freeze for WatchOptions
impl Send for WatchOptions
impl Sync for WatchOptions
impl Unpin for WatchOptions
impl UnsafeUnpin for WatchOptions
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