[][src]Trait dsf_core::service::subscriber::Subscriber

pub trait Subscriber {
    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

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

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

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

Apply an updated primary page to an existing service instance

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

Validate a given secondary page published by this service

Loading content...

Implementors

impl Subscriber for Service[src]

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

Create a service instance from a given page

fn apply_primary(&mut self, update: &Page) -> Result<bool, Error>[src]

Apply an upgrade to an existing service. This consumes a new page and updates the service instance

Loading content...