Skip to main content

RuntimeGetter

Trait RuntimeGetter 

Source
pub trait RuntimeGetter<__Context__>: IsProviderFor<RuntimeGetterComponent, __Context__, ()>
where __Context__: HasRuntimeType,
{ // Required method fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime; }

Required Methods§

Source

fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<__Context__, __Components__, __Path__> RuntimeGetter<__Context__> for RedirectLookup<__Components__, __Path__>
where __Context__: HasRuntimeType, __Components__: DelegateComponent<__Path__>, <__Components__ as DelegateComponent<__Path__>>::Delegate: RuntimeGetter<__Context__>,

Source§

fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime

Source§

impl<__Context__, __Provider__> RuntimeGetter<__Context__> for WithProvider<__Provider__>
where __Context__: HasRuntimeType, __Provider__: FieldGetter<__Context__, RuntimeGetterComponent, Value = <__Context__ as HasRuntimeType>::Runtime>,

Source§

fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime

Source§

impl<__Context__, __Tag__> RuntimeGetter<__Context__> for UseField<__Tag__>
where __Context__: HasRuntimeType + HasField<__Tag__, Value = <__Context__ as HasRuntimeType>::Runtime>,

Source§

fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime

Source§

impl<__Context__> RuntimeGetter<__Context__> for UseContext
where __Context__: HasRuntimeType + HasRuntime,

Source§

fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime

Source§

impl<__Context__> RuntimeGetter<__Context__> for UseFields
where __Context__: HasRuntimeType + HasField<Symbol<7, Chars<'r', Chars<'u', Chars<'n', Chars<'t', Chars<'i', Chars<'m', Chars<'e', Nil>>>>>>>>, Value = <__Context__ as HasRuntimeType>::Runtime>,

Source§

fn runtime( __context__: &__Context__, ) -> &<__Context__ as HasRuntimeType>::Runtime

Implementors§

Source§

impl<__Provider__, __Context__> RuntimeGetter<__Context__> for __Provider__