Skip to main content

immutable_attributes

Macro immutable_attributes 

Source
macro_rules! immutable_attributes {
    (
        $requested:expr,
        Immutable {$($immut_a:ident: $immut_v:expr),* $(,)?}
    ) => { ... };
}
Expand description

Helper for building [fio::NodeAttributes2]given immutable attributes inrequestedCode will only run forrequestedattributes. Mutable attributes inrequested` are ignored.

Example:

immutable_attributes!( requested, Immutable { content_size: 789 } );