macro_rules! attributes {
($requested:expr,
Mutable {$($mut_a:ident: $mut_v:expr),* $(,)?},
Immutable {$($immut_a:ident: $immut_v:expr),* $(,)?}) => { ... };
}
Expand description
Helper for building fio::NodeAttributes2
given
requestedattributes. Code will only run for
requested` attributes.
Example:
attributes!( requested, Mutable { creation_time: 123, modification_time: 456 }, Immutable { content_size: 789 } );