Struct twizzler_runtime_api::ObjectHandle
source · pub struct ObjectHandle {
pub internal_refs: Option<NonNull<InternalHandleRefs>>,
pub id: ObjID,
pub flags: MapFlags,
pub start: *mut u8,
pub meta: *mut u8,
}
Expand description
A handle to an internal object. This has similar semantics to Arc, but since this crate must be #[no_std], we need to implement refcounting ourselves.
Fields§
§internal_refs: Option<NonNull<InternalHandleRefs>>
Pointer to refcounter.
id: ObjID
The ID of the object.
flags: MapFlags
The flags of this handle.
start: *mut u8
A pointer to the object’s start (null-page, not base).
meta: *mut u8
A pointer to the object’s metadata.
Implementations§
Trait Implementations§
source§impl Clone for ObjectHandle
impl Clone for ObjectHandle
source§impl Debug for ObjectHandle
impl Debug for ObjectHandle
source§impl Drop for ObjectHandle
impl Drop for ObjectHandle
impl Send for ObjectHandle
impl Sync for ObjectHandle
Auto Trait Implementations§
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