#[repr(C, align(16))]pub struct object_handle {
pub id: rt_objid,
pub runtime_info: *mut c_void,
pub start: *mut c_void,
pub meta: *mut c_void,
pub map_flags: map_flags,
pub valid_len: u32,
}
Expand description
Object handle
Fields§
§id: rt_objid
ID for this handle
runtime_info: *mut c_void
Pointer to per-runtime info. The first 64-bits of this data must be an atomic u64 value used for reference counting.
start: *mut c_void
Pointer to start of object data.
meta: *mut c_void
Pointer to object meta struct.
map_flags: map_flags
Mapping flags
valid_len: u32
Number of valid bytes after start pointer for this object handle, in multiples of of LEN_MUL
Trait Implementations§
source§impl Clone for object_handle
impl Clone for object_handle
source§fn clone(&self) -> object_handle
fn clone(&self) -> object_handle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for object_handle
impl Debug for object_handle
source§impl Default for object_handle
impl Default for object_handle
impl Copy for object_handle
Auto Trait Implementations§
impl Freeze for object_handle
impl RefUnwindSafe for object_handle
impl !Send for object_handle
impl !Sync for object_handle
impl Unpin for object_handle
impl UnwindSafe for object_handle
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)