pub struct DummyBackendConfig {
pub max_buffer_size: usize,
pub simulate_device_local: bool,
pub transfer_delay_us: u64,
}Expand description
Configuration for the dummy backend.
Fields§
§max_buffer_size: usizeMaximum buffer size (default: 1 GB).
simulate_device_local: boolSimulate device-local memory (allocate but don’t allow mapping).
transfer_delay_us: u64Simulate transfer delays (in microseconds).
Trait Implementations§
Source§impl Clone for DummyBackendConfig
impl Clone for DummyBackendConfig
Source§fn clone(&self) -> DummyBackendConfig
fn clone(&self) -> DummyBackendConfig
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 DummyBackendConfig
impl Debug for DummyBackendConfig
Auto Trait Implementations§
impl Freeze for DummyBackendConfig
impl RefUnwindSafe for DummyBackendConfig
impl Send for DummyBackendConfig
impl Sync for DummyBackendConfig
impl Unpin for DummyBackendConfig
impl UnwindSafe for DummyBackendConfig
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