fidl::encoding

Trait EncodableAsHandle

Source
pub trait EncodableAsHandle: Into<<Self::Dialect as ResourceDialect>::Handle> {
    type Dialect: ResourceDialect<Handle: Into<Self>>;
}
Expand description

Indicates a type is encodable as a handle in a given resource dialect.

Required Associated Types§

Source

type Dialect: ResourceDialect<Handle: Into<Self>>

What resource dialect can encode this object as a handle.

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.

Implementors§