Trait linera_service::cli_wrappers::LineraNet

source ·
pub trait LineraNet {
    // Required methods
    fn ensure_is_running<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn make_client<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = ClientWrapper> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn terminate<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A running Linera net.

Required Methods§

source

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

source

fn make_client<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = ClientWrapper> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

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

Implementations on Foreign Types§

source§

impl LineraNet for Arc<Mutex<LocalKubernetesNet>>

source§

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

source§

fn make_client<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = ClientWrapper> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

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

Implementors§