linera_service::cli_wrappers

Trait 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§