Trait pgdo::coordinate::Subject

source ·
pub trait Subject {
    type Error: Error + Send + Sync;
    type Options<'a>: Default;

    // Required methods
    fn start(&self, options: Self::Options<'_>) -> Result<State, Self::Error>;
    fn stop(&self) -> Result<State, Self::Error>;
    fn destroy(&self) -> Result<State, Self::Error>;
    fn exists(&self) -> Result<bool, Self::Error>;
    fn running(&self) -> Result<bool, Self::Error>;
}
Expand description

The trait that these coordinate functions work with.

Required Associated Types§

Required Methods§

source

fn start(&self, options: Self::Options<'_>) -> Result<State, Self::Error>

source

fn stop(&self) -> Result<State, Self::Error>

source

fn destroy(&self) -> Result<State, Self::Error>

source

fn exists(&self) -> Result<bool, Self::Error>

source

fn running(&self) -> Result<bool, Self::Error>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Subject for Cluster

Cluster can be coordinated.

§

type Error = ClusterError

§

type Options<'a> = &'a [(Parameter<'a>, Value)]