Skip to main content

Importable

Trait Importable 

Source
pub trait Importable<'a>:
    Sized
    + Into<Capability>
    + TryFrom<Capability, Error = Error> {
    type Ref: CapabilityRef<'a>;
}
Expand description

A trait for value types that can be imported into a CapabilityStore, such as String, u64, and fsandbox::DictionaryRef.

Required Associated Types§

Source

type Ref: CapabilityRef<'a>

The type of CapabilityRef 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 Ref = Data<'a>

Source§

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

Source§

type Ref = Data<'a>

Source§

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

Source§

type Ref = Data<'a>

Source§

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

Source§

type Ref = Data<'a>

Source§

impl<'a> Importable<'a> for ClientEnd<ConnectorRouterMarker>

Source§

impl<'a> Importable<'a> for ClientEnd<DataRouterMarker>

Source§

impl<'a> Importable<'a> for ClientEnd<DictionaryRouterMarker>

Source§

impl<'a> Importable<'a> for ClientEnd<DirConnectorRouterMarker>

Source§

impl<'a> Importable<'a> for ClientEnd<DirEntryRouterMarker>

Source§

impl<'a> Importable<'a> for ClientEnd<DirectoryMarker>

Source§

impl<'a> Importable<'a> for Connector

Source§

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

Source§

impl<'a> Importable<'a> for DirConnector

Source§

impl<'a> Importable<'a> for DirEntry

Source§

impl<'a> Importable<'a> for NullableHandle

Source§

type Ref = Handle<'a>

Source§

impl<'a> Importable<'a> for Unit

Source§

type Ref = Unit<'a>

Implementors§