pub struct Watcher<'a> { /* private fields */ }
Expand description
Namespace client for Watcher APIs
Implementations§
Source§impl<'a> Watcher<'a>
impl<'a> Watcher<'a>
pub fn transport(&self) -> &Transport
Sourcepub fn ack_watch<'b>(
&'a self,
parts: WatcherAckWatchParts<'b>,
) -> WatcherAckWatch<'a, 'b, ()>
pub fn ack_watch<'b>( &'a self, parts: WatcherAckWatchParts<'b>, ) -> WatcherAckWatch<'a, 'b, ()>
Acknowledges a watch, manually throttling the execution of the watch’s actions.
Sourcepub fn activate_watch<'b>(
&'a self,
parts: WatcherActivateWatchParts<'b>,
) -> WatcherActivateWatch<'a, 'b, ()>
pub fn activate_watch<'b>( &'a self, parts: WatcherActivateWatchParts<'b>, ) -> WatcherActivateWatch<'a, 'b, ()>
Activates a currently inactive watch.
Sourcepub fn deactivate_watch<'b>(
&'a self,
parts: WatcherDeactivateWatchParts<'b>,
) -> WatcherDeactivateWatch<'a, 'b, ()>
pub fn deactivate_watch<'b>( &'a self, parts: WatcherDeactivateWatchParts<'b>, ) -> WatcherDeactivateWatch<'a, 'b, ()>
Deactivates a currently active watch.
Sourcepub fn delete_watch<'b>(
&'a self,
parts: WatcherDeleteWatchParts<'b>,
) -> WatcherDeleteWatch<'a, 'b>
pub fn delete_watch<'b>( &'a self, parts: WatcherDeleteWatchParts<'b>, ) -> WatcherDeleteWatch<'a, 'b>
Removes a watch from Watcher.
Sourcepub fn execute_watch<'b>(
&'a self,
parts: WatcherExecuteWatchParts<'b>,
) -> WatcherExecuteWatch<'a, 'b, ()>
pub fn execute_watch<'b>( &'a self, parts: WatcherExecuteWatchParts<'b>, ) -> WatcherExecuteWatch<'a, 'b, ()>
Forces the execution of a stored watch.
Sourcepub fn get_settings<'b>(&'a self) -> WatcherGetSettings<'a, 'b>
pub fn get_settings<'b>(&'a self) -> WatcherGetSettings<'a, 'b>
Retrieve settings for the watcher system index
Sourcepub fn get_watch<'b>(
&'a self,
parts: WatcherGetWatchParts<'b>,
) -> WatcherGetWatch<'a, 'b>
pub fn get_watch<'b>( &'a self, parts: WatcherGetWatchParts<'b>, ) -> WatcherGetWatch<'a, 'b>
Retrieves a watch by its ID.
Sourcepub fn put_watch<'b>(
&'a self,
parts: WatcherPutWatchParts<'b>,
) -> WatcherPutWatch<'a, 'b, ()>
pub fn put_watch<'b>( &'a self, parts: WatcherPutWatchParts<'b>, ) -> WatcherPutWatch<'a, 'b, ()>
Creates a new watch, or updates an existing one.
Sourcepub fn query_watches<'b>(&'a self) -> WatcherQueryWatches<'a, 'b, ()>
pub fn query_watches<'b>(&'a self) -> WatcherQueryWatches<'a, 'b, ()>
Retrieves stored watches.
Sourcepub fn start<'b>(&'a self) -> WatcherStart<'a, 'b, ()>
pub fn start<'b>(&'a self) -> WatcherStart<'a, 'b, ()>
Starts Watcher if it is not already running.
Sourcepub fn stats<'b>(&'a self, parts: WatcherStatsParts<'b>) -> WatcherStats<'a, 'b>
pub fn stats<'b>(&'a self, parts: WatcherStatsParts<'b>) -> WatcherStats<'a, 'b>
Retrieves the current Watcher metrics.
Sourcepub fn stop<'b>(&'a self) -> WatcherStop<'a, 'b, ()>
pub fn stop<'b>(&'a self) -> WatcherStop<'a, 'b, ()>
Stops Watcher if it is running.
Sourcepub fn update_settings<'b>(&'a self) -> WatcherUpdateSettings<'a, 'b, ()>
pub fn update_settings<'b>(&'a self) -> WatcherUpdateSettings<'a, 'b, ()>
Update settings for the watcher system index
Auto Trait Implementations§
impl<'a> Freeze for Watcher<'a>
impl<'a> !RefUnwindSafe for Watcher<'a>
impl<'a> Send for Watcher<'a>
impl<'a> Sync for Watcher<'a>
impl<'a> Unpin for Watcher<'a>
impl<'a> !UnwindSafe for Watcher<'a>
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