Trait HandleInfoFor

pub trait HandleInfoFor<D>: Debug
where D: ResourceDialect,
{ // Required methods fn consume( &mut self, expected_object_type: ObjectType, expected_rights: Rights, ) -> Result<<D as ResourceDialect>::Handle, Error>; fn drop_in_place(&mut self); }
Expand description

Handle info struct used for a particular dialect.

Required Methods§

fn consume( &mut self, expected_object_type: ObjectType, expected_rights: Rights, ) -> Result<<D as ResourceDialect>::Handle, Error>

Verifies a HandleInfo has the type and rights we expect and extracts the D::Handle from it.

fn drop_in_place(&mut self)

Destroy the given handle info, leaving it invalid.

Implementors§