Trait r3::bind::Binder

source ·
pub trait Binder {
    type Runtime: RuntimeBinder;

    fn register_dependency(&self, ctx: &mut CfgBindCtx<'_>);
    fn into_runtime_binder(self) -> Self::Runtime;
}
Expand description

Represents a binder, which represents a specific way to access the contents of a binding from a runtime function.

See the module-level documentation for more.

Stability

This trait is covered by the application-side API stability guarantee with a few exceptions, which are documented on a per-item basis.

Required Associated Types

The runtime representation of Self.

Stability

This method is unstable.

Required Methods

Define a binding dependency in CfgBindCtx::bind_registry.

Stability

This method is unstable.

Convert self to the runtime representation (RuntimeBinder).

Stability

This method is unstable.

Implementations on Foreign Types

Implementors

Materializes BindBorrow<System, T> as &'call T.

Materializes BindBorrowMut<System, T> as &'call mut T.

Materializes BindRef<System, T> as &'static T. Can only be consumed by executables and not by bindings.

Materializes BindTake<System, T> as T.

Materializes BindTakeMut<System, T> as &'static mut T.

Materializes BindTakeRef<System, T> as &'static T.