Trait fidl::encoding::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.

Object Safety§

This trait is not object safe.

Implementors§