pub trait Server: Send {
    fn pid(&self) -> Option<u32>;
    fn kill<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn available<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn initialize<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; }

Required Methods§

Returns the process id of the server process

Terminates the server

A future that returns when the server is ready to use

Initializes the server (e.g., funds accounts) after the server is ready to use (i.e., after Self::available completes).

Implementors§