fidl::encoding

Trait HandleInfoFor

Source
pub trait HandleInfoFor<D: ResourceDialect>: Debug {
    // Required methods
    fn consume(
        &mut self,
        expected_object_type: ObjectType,
        expected_rights: 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: ObjectType, expected_rights: 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§