Struct elasticsearch::watcher::Watcher [−][src]
Namespace client for Watcher APIs
Implementations
impl<'a> Watcher<'a>
[src]
pub fn new(transport: &'a Transport) -> Self
[src]
Creates a new instance of Watcher
pub fn transport(&self) -> &Transport
[src]
pub fn ack_watch<'b>(
&'a self,
parts: WatcherAckWatchParts<'b>
) -> WatcherAckWatch<'a, 'b, ()>
[src]
&'a self,
parts: WatcherAckWatchParts<'b>
) -> WatcherAckWatch<'a, 'b, ()>
Acknowledges a watch, manually throttling the execution of the watch’s actions.
pub fn activate_watch<'b>(
&'a self,
parts: WatcherActivateWatchParts<'b>
) -> WatcherActivateWatch<'a, 'b, ()>
[src]
&'a self,
parts: WatcherActivateWatchParts<'b>
) -> WatcherActivateWatch<'a, 'b, ()>
Activates a currently inactive watch.
pub fn deactivate_watch<'b>(
&'a self,
parts: WatcherDeactivateWatchParts<'b>
) -> WatcherDeactivateWatch<'a, 'b, ()>
[src]
&'a self,
parts: WatcherDeactivateWatchParts<'b>
) -> WatcherDeactivateWatch<'a, 'b, ()>
Deactivates a currently active watch.
pub fn delete_watch<'b>(
&'a self,
parts: WatcherDeleteWatchParts<'b>
) -> WatcherDeleteWatch<'a, 'b>
[src]
&'a self,
parts: WatcherDeleteWatchParts<'b>
) -> WatcherDeleteWatch<'a, 'b>
Removes a watch from Watcher.
pub fn execute_watch<'b>(
&'a self,
parts: WatcherExecuteWatchParts<'b>
) -> WatcherExecuteWatch<'a, 'b, ()>
[src]
&'a self,
parts: WatcherExecuteWatchParts<'b>
) -> WatcherExecuteWatch<'a, 'b, ()>
Forces the execution of a stored watch.
pub fn get_watch<'b>(
&'a self,
parts: WatcherGetWatchParts<'b>
) -> WatcherGetWatch<'a, 'b>
[src]
&'a self,
parts: WatcherGetWatchParts<'b>
) -> WatcherGetWatch<'a, 'b>
Retrieves a watch by its ID.
pub fn put_watch<'b>(
&'a self,
parts: WatcherPutWatchParts<'b>
) -> WatcherPutWatch<'a, 'b, ()>
[src]
&'a self,
parts: WatcherPutWatchParts<'b>
) -> WatcherPutWatch<'a, 'b, ()>
Creates a new watch, or updates an existing one.
pub fn query_watches<'b>(&'a self) -> WatcherQueryWatches<'a, 'b, ()>
[src]
Retrieves stored watches.
pub fn start<'b>(&'a self) -> WatcherStart<'a, 'b, ()>
[src]
Starts Watcher if it is not already running.
pub fn stats<'b>(&'a self, parts: WatcherStatsParts<'b>) -> WatcherStats<'a, 'b>
[src]
Retrieves the current Watcher metrics.
pub fn stop<'b>(&'a self) -> WatcherStop<'a, 'b, ()>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,