Struct juju::Hook [−][src]
Fields
name: String
The name of the hook to call
callback: fn() -> Result<(), String>
A function to call when Juju calls this hook
Failures
Your function passed in needs to return a String on error so that users will know what happened. Ideally this should also be logged with juju::log
Trait Implementations
impl Debug for Hook
[src]
impl Debug for Hook
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 PartialEq for Hook
[src]
impl PartialEq for Hook