pub struct PkgDirTest { /* private fields */ }
Expand description
Config object for starting a PkgDirInstance
. The PkgDirInstance
allows blob benchmarks to
open and read a blob through its package directory as opposed to talking directly to the
filesystem.
Implementations§
Source§impl PkgDirTest
impl PkgDirTest
pub fn new_fxblob() -> Self
pub fn new_blobfs() -> Self
Trait Implementations§
Source§impl Clone for PkgDirTest
impl Clone for PkgDirTest
Source§fn clone(&self) -> PkgDirTest
fn clone(&self) -> PkgDirTest
Returns a copy 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 FilesystemConfig for PkgDirTest
impl FilesystemConfig for PkgDirTest
Source§type Filesystem = PkgDirInstance
type Filesystem = PkgDirInstance
The concrete type of the filesystem started by
start_filesystem
. It must at least
implement the Filesystem
trait.Source§fn start_filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
block_device_factory: &'life1 dyn BlockDeviceFactory,
) -> Pin<Box<dyn Future<Output = PkgDirInstance> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
block_device_factory: &'life1 dyn BlockDeviceFactory,
) -> Pin<Box<dyn Future<Output = PkgDirInstance> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Starts an instance of the filesystem.
Auto Trait Implementations§
impl Freeze for PkgDirTest
impl RefUnwindSafe for PkgDirTest
impl Send for PkgDirTest
impl Sync for PkgDirTest
impl Unpin for PkgDirTest
impl UnwindSafe for PkgDirTest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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