fidl::encoding

Trait HandleFor

Source
pub trait HandleFor<D: ResourceDialect> {
    type HandleInfo: HandleInfoFor<D>;

    // Required methods
    fn invalid() -> Self;
    fn is_invalid(&self) -> bool;
}
Expand description

Handle type used for a particular dialect.

Required Associated Types§

Source

type HandleInfo: HandleInfoFor<D>

Handle info used in this dialect.

This is used for receiving handles, and includes type/rights from the kernel.

Required Methods§

Source

fn invalid() -> Self

Produce an invalid version of Handle used as a place filler when we remove handles from an array.

Source

fn is_invalid(&self) -> bool

Check whether a handle is invalid.

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§