Subscriber

Trait Subscriber 

Source
pub trait Subscriber {
    // Required methods
    fn load(page: &Page) -> Result<Service, Error>;
    fn apply_primary(&mut self, primary: &Page) -> Result<bool, Error>;
    fn validate_page(&mut self, page: &Page) -> Result<(), Error>;
}

Required Methods§

Source

fn load(page: &Page) -> Result<Service, Error>

Create a service instance (or replica) from a given primary service page

Source

fn apply_primary(&mut self, primary: &Page) -> Result<bool, Error>

Apply an updated primary page to an existing service instance

Source

fn validate_page(&mut self, page: &Page) -> Result<(), Error>

Validate a given secondary page published by this service

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§