Trait r3_core::bind::RuntimeBinder
source · pub trait RuntimeBinder: Send + Copy + 'static {
type Target<'call>;
// Required method
unsafe fn materialize<'call>(self) -> Self::Target<'call>;
}Expand description
Unstable. The runtime representation of Binder.
This trait signifies the following properties regarding an implementing type:
-
selfcan be “materialized” asSelf::Target<'call>at runtime. -
'callrepresets the duration during whichSelf::Targetis used. IfSelf::Target<'call>is a reference, its lifetime parameter may be bound to'call. Some binder types don’t require this.
Stability
This trait is unstable.
Required Associated Types§
Required Methods§
sourceunsafe fn materialize<'call>(self) -> Self::Target<'call>
unsafe fn materialize<'call>(self) -> Self::Target<'call>
Construct a target object at runtime, using the intermediate product
constructed by Binder::into_runtime_binder.
Safety
intermediate must have been constructed by
<Self as Binder>::into_runtime_binder.
The caller must uphold that Self::Target is safe to exist. (The
configuration system is reponsible for enforcing this property.)