Struct json_job_dispatch::DirectorWatchdog [−][src]
pub struct DirectorWatchdog;
A watchdog for the director.
This handles watchdog:restart
and watchdog:exit
job kinds to make restarting and exiting
the director easier.
Trait Implementations
impl Debug for DirectorWatchdog
[src]
impl Debug for DirectorWatchdog
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for DirectorWatchdog
[src]
impl Clone for DirectorWatchdog
fn clone(&self) -> DirectorWatchdog
[src]
fn clone(&self) -> DirectorWatchdog
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for DirectorWatchdog
[src]
impl Copy for DirectorWatchdog
impl Default for DirectorWatchdog
[src]
impl Default for DirectorWatchdog
fn default() -> DirectorWatchdog
[src]
fn default() -> DirectorWatchdog
Returns the "default value" for a type. Read more
impl Handler for DirectorWatchdog
[src]
impl Handler for DirectorWatchdog
fn add_to_director<'a>(&'a self, director: &mut Director<'a>) -> Result<()>
[src]
fn add_to_director<'a>(&'a self, director: &mut Director<'a>) -> Result<()>
Adds the handler to a director.
fn handle(&self, kind: &str, _: &Value) -> Result<HandlerResult>
[src]
fn handle(&self, kind: &str, _: &Value) -> Result<HandlerResult>
The JSON object is passed in and acted upon.
fn retry_limit(&self, _kind: &str) -> usize
[src]
fn retry_limit(&self, _kind: &str) -> usize
The retry limit for a job kind.
fn handle_retry(
&self,
kind: &str,
object: &Value,
reasons: Vec<String>
) -> Result<HandlerResult>
[src]
fn handle_retry(
&self,
kind: &str,
object: &Value,
reasons: Vec<String>
) -> Result<HandlerResult>
The JSON object which has been retried is passed in and acted upon.
Auto Trait Implementations
impl Send for DirectorWatchdog
impl Send for DirectorWatchdog
impl Sync for DirectorWatchdog
impl Sync for DirectorWatchdog