Trait ResourceTag
Source pub trait ResourceTag: 'static {
type Arg: TypeFn;
type Out: TypeFn;
}
Expand description
A marker type used as a key for requesting values from Provide
.
§Note
Types implementing this trait are generally meant to be used in generic parameters but not instantiated as values.
A TypeFn
specifying the argument type of this tag.
The argument contains any information needed to provide this resource.
A TypeFn
specifying the resolved type of this tag.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.