pub struct TestFixture { /* private fields */ }Implementations§
Source§impl TestFixture
impl TestFixture
pub async fn new() -> Self
pub async fn new_with_device(device: DeviceHolder) -> Self
pub async fn new_unencrypted() -> Self
pub async fn open(device: DeviceHolder, options: TestFixtureOptions) -> Self
Sourcepub async fn close(self) -> DeviceHolder
pub async fn close(self) -> DeviceHolder
Closes the test fixture, shutting down the filesystem. Returns the device, which can be reused for another TestFixture.
Ensures that:
- The filesystem shuts down cleanly.
- fsck passes.
- There are no dangling references to the device or the volume.
pub fn root(&self) -> &DirectoryProxy
pub fn crypt(&self) -> Option<Arc<CryptBase>>
pub fn fs(&self) -> &Arc<FxFilesystem>
pub fn volume(&self) -> &FxVolumeAndRoot
pub fn volumes_directory(&self) -> &Arc<VolumesDirectory>
pub fn volume_out_dir(&self) -> &DirectoryProxy
pub fn memory_pressure_proxy(&self) -> &WatcherProxy
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestFixture
impl !RefUnwindSafe for TestFixture
impl Send for TestFixture
impl Sync for TestFixture
impl Unpin for TestFixture
impl UnsafeUnpin for TestFixture
impl !UnwindSafe for TestFixture
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]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