vfs::file::test_utils

Function test_server_client

Source
pub fn test_server_client<'test_refs, GetClientRes>(
    flags: OpenFlags,
    server: Arc<dyn DirectoryEntry>,
    get_client: impl FnOnce(FileProxy) -> GetClientRes + 'test_refs,
) -> AsyncServerClientTestParams<'test_refs, FileMarker>
where GetClientRes: Future<Output = ()> + 'test_refs,
Expand description

A thin wrapper around run::test_server_client() that sets the Marker to be [FileMarker], and providing explicit type for the get_client closure argument. This makes it possible for the caller not to provide explicit types.