ActivationBackend

Trait ActivationBackend 

Source
pub trait ActivationBackend: Send + Sync {
    // Required methods
    fn is_switch_in_progress(&self) -> impl Future<Output = bool> + Send;
    fn read_unit_exit_code(
        &self,
        unit_name: &str,
    ) -> impl Future<Output = Option<i32>> + Send;
    fn fire_switch(
        &self,
        target: &ActivationTarget,
        store_path: &str,
    ) -> impl Future<Output = Result<Option<ActivationOutcome>>> + Send;
    fn fire_rollback(
        &self,
        target_basename: &str,
    ) -> impl Future<Output = Result<Option<RollbackOutcome>>> + Send;
}

Required Methods§

Source

fn is_switch_in_progress(&self) -> impl Future<Output = bool> + Send

Source

fn read_unit_exit_code( &self, unit_name: &str, ) -> impl Future<Output = Option<i32>> + Send

Source

fn fire_switch( &self, target: &ActivationTarget, store_path: &str, ) -> impl Future<Output = Result<Option<ActivationOutcome>>> + Send

Source

fn fire_rollback( &self, target_basename: &str, ) -> impl Future<Output = Result<Option<RollbackOutcome>>> + Send

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§