pub enum Runtime {
Created {
config: Config,
forker: (u32, Streams),
},
Running {
guard: DropGuard,
task: JoinHandle<Result<()>>,
},
}
Expand description
The runtime is created but not yet started.
Fields
Drop guard to stop the runtime
Create new runtime instance
Start runtime with configuration config
Stop the runtime and wait for the termination
Wait for the runtime to stop
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.