Trait Importable

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl<'a> Importable<'a> for i64

Source§

type Handle = Data<'a>

Source§

impl<'a> Importable<'a> for u64

Source§

type Handle = Data<'a>

Source§

impl<'a> Importable<'a> for DictionaryRef

Source§

impl<'a> Importable<'a> for String

Source§

type Handle = Data<'a>

Source§

impl<'a> Importable<'a> for Vec<u8>

Source§

type Handle = Data<'a>

Implementors§