Struct ocf::Hooks [] [src]

pub struct Hooks {
    pub pre_start: Vec<Command>,
    pub post_start: Vec<Command>,
    pub post_stop: Vec<Command>,
}

Fields

pre_start
post_start
post_stop

Methods

impl Hooks

fn pre_start(&self) -> &[Command]

fn post_start(&self) -> &[Command]

fn post_stop(&self) -> &[Command]

Trait Implementations

impl Deserialize for Hooks

fn deserialize<__D>(deserializer: &mut __D) -> Result<Hooks, __D::Error> where __D: Deserializer

impl Serialize for Hooks

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl Debug for Hooks

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Hooks

fn clone(&self) -> Hooks

fn clone_from(&mut self, source: &Self)