#[repr(C)]pub struct uct_allocated_memory {
pub address: *mut c_void,
pub length: size_t,
pub method: uct_alloc_method_t,
pub mem_type: ucs_memory_type_t,
pub md: uct_md_h,
pub memh: uct_mem_h,
}Expand description
@ingroup UCT_MD @brief Describes a memory allocated by UCT.
This structure describes the memory block which includes the address, size, and Memory Domain used for allocation. This structure is passed to interface and the memory is allocated by memory allocation functions @ref uct_mem_alloc.
Fields§
§address: *mut c_void< Address of allocated memory
length: size_t< Real size of allocated memory
method: uct_alloc_method_t< Method used to allocate the memory
mem_type: ucs_memory_type_t< type of allocated memory
md: uct_md_h< if method==MD: MD used to allocate the memory
memh: uct_mem_h< if method==MD: MD memory handle
Trait Implementations§
Source§impl Clone for uct_allocated_memory
impl Clone for uct_allocated_memory
Source§fn clone(&self) -> uct_allocated_memory
fn clone(&self) -> uct_allocated_memory
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 uct_allocated_memory
impl Debug for uct_allocated_memory
impl Copy for uct_allocated_memory
Auto Trait Implementations§
impl Freeze for uct_allocated_memory
impl RefUnwindSafe for uct_allocated_memory
impl !Send for uct_allocated_memory
impl !Sync for uct_allocated_memory
impl Unpin for uct_allocated_memory
impl UnwindSafe for uct_allocated_memory
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