virtual_file_system/macro.rs
1#[macro_export]
2macro_rules! mount_static_devices {
3
4 ( $Virtual_file_system:expr, $Task_identifier:expr, &[ $( ($Path:expr, $Device:expr) ),* $(,)? ] ) => {
5
6 async || -> Result<(), file_system::Error>
7 {
8 use file_system::create_device;
9
10 $( $Virtual_file_system.mount_static_device($Task_identifier, $Path, create_device!($Device)).await?; )*
11
12 Ok(())
13 }()
14};
15
16}