pub trait AppRuntime:
Send
+ Clone
+ 'static {
type Guard<'a>;
// Required method
fn enter(&self) -> Self::Guard<'_>;
}
Expand description
A runtime associated with the Cushy application.
This trait is how Cushy adds optional support for tokio
.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.