#[repr(C)]pub struct ucp_mem_attr {
pub field_mask: u64,
pub address: *mut c_void,
pub length: size_t,
pub mem_type: ucs_memory_type_t,
}Expand description
@ingroup UCP_MEM @brief Attributes of the @ref ucp_mem_h “UCP Memory handle”, filled by @ref ucp_mem_query function.
Fields§
§field_mask: u64Mask of valid fields in this structure, using bits from @ref ucp_mem_attr_field. Fields not specified in this mask will be ignored. Provides ABI compatibility with respect to adding new fields.
address: *mut c_voidAddress of the memory segment.
length: size_tSize of the memory segment.
mem_type: ucs_memory_type_tType of allocated or registered memory
Trait Implementations§
Source§impl Clone for ucp_mem_attr
impl Clone for ucp_mem_attr
Source§fn clone(&self) -> ucp_mem_attr
fn clone(&self) -> ucp_mem_attr
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 ucp_mem_attr
impl Debug for ucp_mem_attr
impl Copy for ucp_mem_attr
Auto Trait Implementations§
impl Freeze for ucp_mem_attr
impl RefUnwindSafe for ucp_mem_attr
impl !Send for ucp_mem_attr
impl !Sync for ucp_mem_attr
impl Unpin for ucp_mem_attr
impl UnwindSafe for ucp_mem_attr
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