#[repr(C)]pub struct _cef_shared_memory_region_t {
pub base: cef_base_ref_counted_t,
pub is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> c_int>,
pub size: Option<unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> usize>,
pub memory: Option<unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> *const c_void>,
}Expand description
Structure that wraps platform-dependent share memory region mapping.
Fields§
§base: cef_base_ref_counted_tBase structure.
is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> c_int>Returns true (1) if the mapping is valid.
size: Option<unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> usize>Returns the size of the mapping in bytes. Returns 0 for invalid instances.
memory: Option<unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> *const c_void>Returns the pointer to the memory. Returns nullptr for invalid instances. The returned pointer is only valid for the life span of this object.
Trait Implementations§
Source§fn clone(&self) -> _cef_shared_memory_region_t
fn clone(&self) -> _cef_shared_memory_region_t
Returns a duplicate 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 moreAuto 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