pub struct AttributeList<const N: usize, Data>(/* private fields */);
Expand description
A list of attributes.
This type is used to construct a new ItemType
. It represents a list of
Attribute
that will appear in the directory representing a Group
.
Users should not directly instantiate this type, rather they should use the
kernel::configfs_attrs
macro to declare a static set of attributes for a
group.
§Note
Instances of this type are constructed statically at compile by the
kernel::configfs_attrs
macro.
Trait Implementations§
impl<const N: usize, Data> Send for AttributeList<N, Data>
impl<const N: usize, Data> Sync for AttributeList<N, Data>
Auto Trait Implementations§
impl<const N: usize, Data> !Freeze for AttributeList<N, Data>
impl<const N: usize, Data> !RefUnwindSafe for AttributeList<N, Data>
impl<const N: usize, Data> Unpin for AttributeList<N, Data>where
Data: Unpin,
impl<const N: usize, Data> UnwindSafe for AttributeList<N, Data>where
Data: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more