pub struct BlobfsRamdiskBuilder { /* private fields */ }
Expand description
A helper to construct BlobfsRamdisk
instances.
Implementations§
Source§impl BlobfsRamdiskBuilder
impl BlobfsRamdiskBuilder
Sourcepub fn formatted_ramdisk(self, ramdisk: FormattedRamdisk) -> Self
pub fn formatted_ramdisk(self, ramdisk: FormattedRamdisk) -> Self
Configures this blobfs to use the already formatted given backing ramdisk.
Sourcepub fn ramdisk(self, ramdisk: Ramdisk) -> Self
pub fn ramdisk(self, ramdisk: Ramdisk) -> Self
Configures this blobfs to use the supplied unformatted ramdisk.
Sourcepub fn with_blob(self, blob: impl Into<BlobInfo>) -> Self
pub fn with_blob(self, blob: impl Into<BlobInfo>) -> Self
Write the provided blob after mounting blobfs if the blob does not already exist.
Sourcepub fn cpp_blobfs(self) -> Self
pub fn cpp_blobfs(self) -> Self
Use the blobfs implementation of the blob file system (the older C++ implementation that provides a fuchsia.io interface).
Sourcepub fn fxblob(self) -> Self
pub fn fxblob(self) -> Self
Use the fxblob implementation of the blob file system (the newer Rust implementation built on fxfs that has a custom FIDL interface).
Sourcepub fn implementation(self, implementation: Implementation) -> Self
pub fn implementation(self, implementation: Implementation) -> Self
Use the provided blobfs implementation.
Sourcepub fn impl_from_env(self) -> Self
pub fn impl_from_env(self) -> Self
Use the blobfs implementation that would be active in the production configuration.
Sourcepub async fn start(self) -> Result<BlobfsRamdisk, Error>
pub async fn start(self) -> Result<BlobfsRamdisk, Error>
Starts a blobfs server with the current configuration options.
Auto Trait Implementations§
impl Freeze for BlobfsRamdiskBuilder
impl !RefUnwindSafe for BlobfsRamdiskBuilder
impl Send for BlobfsRamdiskBuilder
impl Sync for BlobfsRamdiskBuilder
impl Unpin for BlobfsRamdiskBuilder
impl !UnwindSafe for BlobfsRamdiskBuilder
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