pub trait Importable<'a>:
Sized
+ Into<Capability>
+ TryFrom<Capability, Error = Error> {
type Handle: CapabilityHandle<'a>;
}
Expand description
A trait for types that can be imported into a CapabilityStore
.
Meant to be implemented by newtypes of CapabilityHandle
.
Required Associated Types§
Sourcetype Handle: CapabilityHandle<'a>
type Handle: CapabilityHandle<'a>
The type of handle that will be returned on import.
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.