/// 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.
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.
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 async fn close(mut self) -> DeviceHolder {
        let state = std::mem::take(&mut self.state).unwrap();
        // Close the root node and ensure that there's no remaining references to |vol|, which would
        // indicate a reference cycle or other leak.
        Status::ok(state.root.close().await.expect("FIDL call failed")).expect("close root failed");
        let (filesystem, volume) = state.into();
        Arc::try_unwrap(volume.into_volume())
            .map_err(|_| "References to volume still exist")
            .unwrap();
        filesystem.close().await.expect("close filesystem failed");
        fsck(filesystem.as_ref()).await.expect("fsck failed");
        self.scope.shutdown();
        let device = filesystem.take_device().await;
        device.ensure_unique();
        device.reopen();
        device
    }
pub async fn close ( mut self ) -> DeviceHolder { let state = std :: mem :: take ( & mut self . state ) . unwrap ( ) ; // Close the root node and ensure that there's no remaining references to |vol|, which would // indicate a reference cycle or other leak. Status :: ok ( state . root . close ( ) . await . expect ( " " ) ) . expect ( " " ) ; let ( filesystem , volume ) = state . into ( ) ; Arc :: try_unwrap ( volume . into_volume ( ) ) . map_err ( | _ | " " ) . unwrap ( ) ; filesystem . close ( ) . await . expect ( " " ) ; fsck ( filesystem . as_ref ( ) ) . await . expect ( " " ) ; self . scope . shutdown ( ) ; let device = filesystem . take_device ( ) . await ; device . ensure_unique ( ) ; device . reopen ( ) ; device }
Closes the test fixture, shutting down the filesystem.
Closes the test fixture shutting down the filesystem .
mut self