#[repr(C)]pub struct HandleDisposition<'a> {
pub object_type: ObjectType,
pub rights: Rights,
pub result: Status,
/* private fields */
}
Expand description
Operation to perform on handles during write. ABI-compatible with zx_handle_disposition_t
.
Fields§
§object_type: ObjectType
§rights: Rights
§result: Status
Implementations§
Source§impl<'a> HandleDisposition<'a>
impl<'a> HandleDisposition<'a>
pub fn new( handle_op: HandleOp<'a>, object_type: ObjectType, rights: Rights, status: Status, ) -> Self
pub fn raw_handle(&self) -> zx_handle_t
pub fn is_move(&self) -> bool
pub fn is_duplicate(&self) -> bool
pub fn take_op(&mut self) -> HandleOp<'a>
pub fn into_raw(self) -> zx_handle_disposition_t
Trait Implementations§
Source§impl<'a> Debug for HandleDisposition<'a>
impl<'a> Debug for HandleDisposition<'a>
Source§impl<'a> Drop for HandleDisposition<'a>
impl<'a> Drop for HandleDisposition<'a>
Source§impl<'a> Hash for HandleDisposition<'a>
impl<'a> Hash for HandleDisposition<'a>
Source§impl<'a> Ord for HandleDisposition<'a>
impl<'a> Ord for HandleDisposition<'a>
Source§fn cmp(&self, other: &HandleDisposition<'a>) -> Ordering
fn cmp(&self, other: &HandleDisposition<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for HandleDisposition<'a>
impl<'a> PartialEq for HandleDisposition<'a>
Source§impl<'a> PartialOrd for HandleDisposition<'a>
impl<'a> PartialOrd for HandleDisposition<'a>
impl<'a> Eq for HandleDisposition<'a>
impl<'a> StructuralPartialEq for HandleDisposition<'a>
Auto Trait Implementations§
impl<'a> Freeze for HandleDisposition<'a>
impl<'a> RefUnwindSafe for HandleDisposition<'a>
impl<'a> Send for HandleDisposition<'a>
impl<'a> Sync for HandleDisposition<'a>
impl<'a> Unpin for HandleDisposition<'a>
impl<'a> UnwindSafe for HandleDisposition<'a>
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