pub struct NativeMemoryPoolProps {
pub device_ordinal: i32,
pub max_size_bytes: usize,
}Expand description
Configuration for a NativeMemoryPool.
Fields§
§device_ordinal: i32Device ordinal that physically backs the pool.
max_size_bytes: usizeMaximum aggregate size (bytes) the pool may hold. 0 = unlimited.
Trait Implementations§
Source§impl Clone for NativeMemoryPoolProps
impl Clone for NativeMemoryPoolProps
Source§fn clone(&self) -> NativeMemoryPoolProps
fn clone(&self) -> NativeMemoryPoolProps
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 moreSource§impl Debug for NativeMemoryPoolProps
impl Debug for NativeMemoryPoolProps
Source§impl Default for NativeMemoryPoolProps
impl Default for NativeMemoryPoolProps
Source§fn default() -> NativeMemoryPoolProps
fn default() -> NativeMemoryPoolProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for NativeMemoryPoolProps
impl PartialEq for NativeMemoryPoolProps
impl Copy for NativeMemoryPoolProps
impl Eq for NativeMemoryPoolProps
impl StructuralPartialEq for NativeMemoryPoolProps
Auto Trait Implementations§
impl Freeze for NativeMemoryPoolProps
impl RefUnwindSafe for NativeMemoryPoolProps
impl Send for NativeMemoryPoolProps
impl Sync for NativeMemoryPoolProps
impl Unpin for NativeMemoryPoolProps
impl UnsafeUnpin for NativeMemoryPoolProps
impl UnwindSafe for NativeMemoryPoolProps
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