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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)