pub trait Ctx:
Send
+ Sync
+ 'static {
type Config: SetupData + Default;
type Setup: SetupData;
// Required method
fn setup(
config: &Self::Config,
) -> impl Future<Output = Result<Self::Setup>> + Send;
// Provided method
fn round_label(_config: &Self::Config, _round: u32) -> Option<String> { ... }
}Required Associated Types§
Required Methods§
Provided 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.