Trait HandleFor

pub trait HandleFor<D>
where 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§

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§

fn invalid() -> Self

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

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§