pub struct PkgDirInstance { /* private fields */ }
Implementations§
Source§impl PkgDirInstance
impl PkgDirInstance
pub fn pkgdir_proxy(&self) -> PkgDirProxy
Trait Implementations§
Source§impl BlobFilesystem for PkgDirInstance
impl BlobFilesystem for PkgDirInstance
Source§fn get_vmo<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = Vmo> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_vmo<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = Vmo> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Blobfs and Fxblob open and read blobs using different protocols. Benchmarks should remain
agnostic to which protocol is being used.
Source§fn write_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Writes a blob to the filesystem. Read more
Source§fn exposed_dir(&self) -> &DirectoryProxy
fn exposed_dir(&self) -> &DirectoryProxy
Returns the exposed dir of Blobfs or Fxblobs’ blob volume.
Source§impl CacheClearableFilesystem for PkgDirInstance
impl CacheClearableFilesystem for PkgDirInstance
Source§fn clear_cache<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_cache<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clears all cached data in the filesystem. This method is used in “cold” benchmarks to
ensure that the filesystem isn’t using cached data from the setup phase in the benchmark
phase.
Source§impl Filesystem for PkgDirInstance
impl Filesystem for PkgDirInstance
Source§fn shutdown<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
fn shutdown<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
Cleans up the filesystem after a benchmark has run. Filesystem is unusable after this call.
Source§fn benchmark_dir(&self) -> &Path
fn benchmark_dir(&self) -> &Path
Path to where the filesystem is located in the current process’s namespace. All benchmark
operations should happen within this directory.
Auto Trait Implementations§
impl Freeze for PkgDirInstance
impl !RefUnwindSafe for PkgDirInstance
impl Send for PkgDirInstance
impl Sync for PkgDirInstance
impl Unpin for PkgDirInstance
impl !UnwindSafe for PkgDirInstance
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
§impl<T> BoxedFilesystem for Twhere
T: Filesystem,
impl<T> BoxedFilesystem for Twhere
T: Filesystem,
§fn shutdown_boxed<'a>(
self: Box<T>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>where
T: 'a,
fn shutdown_boxed<'a>(
self: Box<T>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>where
T: 'a,
Filesystem::shutdown
takes the filesystem by value which doesn’t work for Box<&dyn Filesystem>
because the filesystem type isn’t known at compile time. Taking the filesystem
as Box<Self>
works and the type of the filesystem is now known so the
Filesystem::shutdown
method can be called.