pub struct FvmInstance { /* private fields */ }Expand description
A wrapper around a running FVM component instance backed by a ramdisk.
Implementations§
Source§impl FvmInstance
impl FvmInstance
Sourcepub async fn new(
vmo: &Vmo,
ramdisk_block_size: u64,
fvm_slice_size: Option<u64>,
) -> Self
pub async fn new( vmo: &Vmo, ramdisk_block_size: u64, fvm_slice_size: Option<u64>, ) -> Self
Creates a new FVM instance. If fvm_slice_size is specified, the device is formatted with
the specified slice size. If not specified, vmo should contain an existing FVM format.
pub async fn new_volume( &mut self, name: &str, type_guid: &Guid, initial_volume_size: Option<u64>, ) -> FvmVolume
pub async fn open_volume(&self, name: &str) -> FvmVolume
pub fn ramdisk_get_dir(&self) -> Option<&DirectoryProxy>
pub async fn free_space(&self) -> u64
Auto Trait Implementations§
impl Freeze for FvmInstance
impl !RefUnwindSafe for FvmInstance
impl Send for FvmInstance
impl Sync for FvmInstance
impl Unpin for FvmInstance
impl UnsafeUnpin for FvmInstance
impl !UnwindSafe for FvmInstance
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> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§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