Trait vault::service::Service

source ·
pub trait Service<Config> {
    const NAME: &'static str;
    const VERSION: &'static str;

    // Required methods
    fn new_service(
        btc_parachain: BtcParachain,
        bitcoin_core: DynBitcoinCoreApi,
        config: Config,
        monitoring_config: MonitoringConfig,
        shutdown: ShutdownSender,
        constructor: Box<dyn Fn(VaultId) -> Result<DynBitcoinCoreApi, BitcoinError> + Send + Sync>,
        keyname: String
    ) -> Self;
    fn start<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), BackoffError<Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Constants§

source

const NAME: &'static str

source

const VERSION: &'static str

Required Methods§

source

fn new_service( btc_parachain: BtcParachain, bitcoin_core: DynBitcoinCoreApi, config: Config, monitoring_config: MonitoringConfig, shutdown: ShutdownSender, constructor: Box<dyn Fn(VaultId) -> Result<DynBitcoinCoreApi, BitcoinError> + Send + Sync>, keyname: String ) -> Self

source

fn start<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BackoffError<Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl Service<VaultServiceConfig> for VaultService

source§

const NAME: &'static str = NAME

source§

const VERSION: &'static str = VERSION