Skip to main content

StartableRuntime

Trait StartableRuntime 

Source
pub trait StartableRuntime<'a>:
    InternalRuntime
    + Sized
    + 'a {
    // Required method
    fn construct() -> Self;

    // Provided method
    fn new() -> OwnedRuntime<'a> { ... }
}
Expand description

Trait to construct a runtime

Required Methods§

Source

fn construct() -> Self

Internal function to make a new runtime. Only to be used by new() to create an OwnedRuntime. Automatically implemented for T where T: Default

Provided Methods§

Source

fn new() -> OwnedRuntime<'a>

Constructs some new runtime

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, T> StartableRuntime<'a> for T
where T: Default + InternalRuntime + Sized + 'a,