pub struct VmoBackedServerOptions<'a> {
pub info: DeviceInfo,
pub block_size: u32,
pub initial_contents: InitialContents<'a>,
pub observer: Option<Box<dyn Observer>>,
pub write_tracking: bool,
pub max_jitter_usec: Option<u64>,
}Fields§
§info: DeviceInfoNB: block_count is ignored as that comes from initial_contents.
block_size: u32§initial_contents: InitialContents<'a>§observer: Option<Box<dyn Observer>>§write_tracking: boolEnables write tracking so Observer::flush and [Observer::barrier] will be provided
with WriteCache.
Note that this is expensive and should mainly be used for tests.
max_jitter_usec: Option<u64>If set, each operation will be delayed by a random duration <= this value, which is useful for testing race conditions due to out-of-order block requests.
Implementations§
Source§impl VmoBackedServerOptions<'_>
impl VmoBackedServerOptions<'_>
pub fn build(self) -> Result<VmoBackedServer, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VmoBackedServerOptions<'a>
impl<'a> !RefUnwindSafe for VmoBackedServerOptions<'a>
impl<'a> Send for VmoBackedServerOptions<'a>
impl<'a> Sync for VmoBackedServerOptions<'a>
impl<'a> Unpin for VmoBackedServerOptions<'a>
impl<'a> !UnwindSafe for VmoBackedServerOptions<'a>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]