pub enum BenchmarkVolumeFactory {
SystemFvm(SystemFvm),
SystemGpt(SystemGpt),
}
Expand description
A factory for volumes which the benchmarks run in. If the system has an FVM, benchmarks run in a volume in the system FVM. Otherwise, they run out of a partition in the system GPT (and might still include a hermetic FVM instance, if the benchmark needs it to run).
Variants§
Implementations§
Source§impl BenchmarkVolumeFactory
impl BenchmarkVolumeFactory
Sourcepub async fn from_config(
storage_host: bool,
fxfs_blob: bool,
) -> BenchmarkVolumeFactory
pub async fn from_config( storage_host: bool, fxfs_blob: bool, ) -> BenchmarkVolumeFactory
Creates a factory for volumes in which benchmarks should run in based on the provided configuration. Uses various capabilities in the incoming namespace of the process.
Sourcepub fn connect_to_system_fvm(
volumes_connector: Box<dyn Send + Sync + Fn() -> VolumesProxy>,
volumes_dir_connector: Box<dyn Send + Sync + Fn() -> DirectoryProxy>,
) -> Option<BenchmarkVolumeFactory>
pub fn connect_to_system_fvm( volumes_connector: Box<dyn Send + Sync + Fn() -> VolumesProxy>, volumes_dir_connector: Box<dyn Send + Sync + Fn() -> DirectoryProxy>, ) -> Option<BenchmarkVolumeFactory>
Connects to the system FVM component.
Sourcepub async fn connect_to_system_fvm_devfs() -> Option<BenchmarkVolumeFactory>
pub async fn connect_to_system_fvm_devfs() -> Option<BenchmarkVolumeFactory>
Connects to the system FVM running in devfs.
pub async fn connect_to_test_partition( service: Service<PartitionServiceMarker>, manager: PartitionsManagerProxy, ) -> Option<BenchmarkVolumeFactory>
pub async fn connect_to_test_partition_devfs() -> Option<BenchmarkVolumeFactory>
Trait Implementations§
Source§impl BlockDeviceFactory for BenchmarkVolumeFactory
impl BlockDeviceFactory for BenchmarkVolumeFactory
Auto Trait Implementations§
impl Freeze for BenchmarkVolumeFactory
impl !RefUnwindSafe for BenchmarkVolumeFactory
impl Send for BenchmarkVolumeFactory
impl Sync for BenchmarkVolumeFactory
impl Unpin for BenchmarkVolumeFactory
impl !UnwindSafe for BenchmarkVolumeFactory
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> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more