Trait fidl::encoding::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§
sourcefn consume(
&mut self,
expected_object_type: ObjectType,
expected_rights: Rights,
) -> Result<D::Handle>
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.
sourcefn drop_in_place(&mut self)
fn drop_in_place(&mut self)
Destroy the given handle info, leaving it invalid.