Trait fidl::encoding::HandleInfoFor

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

Handle info struct used for a particular dialect.

Required Methods§

source

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

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

source

fn drop_in_place(&mut self)

Destroy the given handle info, leaving it invalid.

Implementors§