Struct elasticsearch::watcher::Watcher
source · [−]pub struct Watcher<'a> { /* private fields */ }
Expand description
Namespace client for Watcher APIs
Implementations
sourceimpl<'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_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.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more