fidl::encoding

Trait HandleDispositionFor

Source
pub trait HandleDispositionFor<D: ResourceDialect>: Debug {
    // Required method
    fn from_handle(
        handle: D::Handle,
        object_type: ObjectType,
        rights: Rights,
    ) -> Self;
}
Expand description

Handle disposition struct used for a particular dialect.

Required Methods§

Source

fn from_handle( handle: D::Handle, object_type: ObjectType, rights: Rights, ) -> Self

Wrap a handle in a handle disposition.

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§