pub trait TryAdopt: Sized {
// Required method
fn try_adopt() -> Option<Self>;
}Expand description
Try to adopt the existing runtime.
Returns None if no runtime is detected.
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.