pub struct HandleInfo {
pub handle: AnyHandle,
pub rights: Rights,
}
Expand description
A handle which has been read from a channel.
Fields§
§handle: AnyHandle
§rights: Rights
Trait Implementations§
Source§impl Debug for HandleInfo
impl Debug for HandleInfo
Source§impl HandleDispositionFor<FDomainResourceDialect> for HandleInfo
impl HandleDispositionFor<FDomainResourceDialect> for HandleInfo
Source§fn from_handle(handle: Handle, object_type: ObjectType, rights: Rights) -> Self
fn from_handle(handle: Handle, object_type: ObjectType, rights: Rights) -> Self
Wrap a handle in a handle disposition.
Source§impl HandleInfoFor<FDomainResourceDialect> for HandleInfo
impl HandleInfoFor<FDomainResourceDialect> for HandleInfo
Source§fn consume(
&mut self,
expected_object_type: ObjectType,
expected_rights: Rights,
) -> Result<Handle, Error>
fn consume( &mut self, expected_object_type: ObjectType, expected_rights: Rights, ) -> Result<Handle, Error>
Verifies a
HandleInfo
has the type and rights we expect and
extracts the D::Handle
from it.Source§fn drop_in_place(&mut self)
fn drop_in_place(&mut self)
Destroy the given handle info, leaving it invalid.
Auto Trait Implementations§
impl Freeze for HandleInfo
impl RefUnwindSafe for HandleInfo
impl Send for HandleInfo
impl Sync for HandleInfo
impl Unpin for HandleInfo
impl UnwindSafe for HandleInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more