Trait RuntimeGetter

Source
pub trait RuntimeGetter<Context>
where Context: HasRuntimeType,
{ // Required method fn runtime(context: &Context) -> &Context::Runtime; }

Required Methods§

Source

fn runtime(context: &Context) -> &Context::Runtime

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.

Implementors§

Source§

impl<Component, Context> RuntimeGetter<Context> for Component
where Context: HasRuntimeType, Component: DelegateComponent<RuntimeGetterComponent>, Component::Delegate: RuntimeGetter<Context>,

Source§

impl<Context, Field: Async> RuntimeGetter<Context> for ProvideRuntimeField<Field>
where Context: HasRuntimeType + HasField<Field, Field = Context::Runtime>,