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.
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.