pub struct ZeroCopyConfig {
pub use_pinned_memory: bool,
pub enable_cow: bool,
pub alignment: usize,
pub track_stats: bool,
}Expand description
Configuration for zero-copy buffers
Fields§
§use_pinned_memory: boolUse pinned memory for GPU transfers
enable_cow: boolEnable copy-on-write semantics
alignment: usizeAlignment requirement
track_stats: boolEnable statistics tracking
Implementations§
Source§impl ZeroCopyConfig
impl ZeroCopyConfig
Sourcepub fn with_pinned_memory(self, enable: bool) -> Self
pub fn with_pinned_memory(self, enable: bool) -> Self
Enable pinned memory
Sourcepub fn with_alignment(self, alignment: usize) -> Self
pub fn with_alignment(self, alignment: usize) -> Self
Set alignment
Sourcepub fn with_stats(self, enable: bool) -> Self
pub fn with_stats(self, enable: bool) -> Self
Enable statistics
Trait Implementations§
Source§impl Clone for ZeroCopyConfig
impl Clone for ZeroCopyConfig
Source§fn clone(&self) -> ZeroCopyConfig
fn clone(&self) -> ZeroCopyConfig
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 ZeroCopyConfig
impl Debug for ZeroCopyConfig
Auto Trait Implementations§
impl Freeze for ZeroCopyConfig
impl RefUnwindSafe for ZeroCopyConfig
impl Send for ZeroCopyConfig
impl Sync for ZeroCopyConfig
impl Unpin for ZeroCopyConfig
impl UnsafeUnpin for ZeroCopyConfig
impl UnwindSafe for ZeroCopyConfig
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