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§
sourcetype HandleInfo: HandleInfoFor<D>
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§
sourcefn invalid() -> Self
fn invalid() -> Self
Produce an invalid version of Handle
used as a place filler when
we remove handles from an array.
sourcefn is_invalid(&self) -> bool
fn is_invalid(&self) -> bool
Check whether a handle is invalid.
Object Safety§
This trait is not object safe.