Trait RuntimeControl

Source
pub trait RuntimeControl {
    // Required methods
    fn id(&self) -> u32;
    fn stop(&self);
    fn stopped(&self) -> BoxFuture<'_, i32>;
}
Expand description

Runtime control interface

Required Methods§

Source

fn id(&self) -> u32

Return runtime process id

Source

fn stop(&self)

Stop the runtime

Source

fn stopped(&self) -> BoxFuture<'_, i32>

Return a future, resolved when the runtime is stopped

Implementations on Foreign Types§

Source§

impl<Out: Sink<Request> + Unpin> RuntimeControl for Arc<Client<Out>>

Source§

fn id(&self) -> u32

Source§

fn stop(&self)

Source§

fn stopped(&self) -> BoxFuture<'_, i32>

Implementors§