pub struct Group<Data> { /* private fields */ }
Expand description
A configfs group.
To add a subgroup to configfs, pass this type as ctype
to
crate::configfs_attrs
when creating a group in GroupOperations::make_group
.
Implementations§
Source§impl<Data> Group<Data>
impl<Data> Group<Data>
Sourcepub fn new(
name: CString,
item_type: &'static ItemType<Group<Data>, Data>,
data: impl PinInit<Data, Error>,
) -> impl PinInit<Self, Error>
pub fn new( name: CString, item_type: &'static ItemType<Group<Data>, Data>, data: impl PinInit<Data, Error>, ) -> impl PinInit<Self, Error>
Create an initializer for a new group.
When instantiated, the group will appear as a directory with the name
given by name
and it will contain attributes specified by item_type
.
Trait Implementations§
Auto Trait Implementations§
impl<Data> !Freeze for Group<Data>
impl<Data> !RefUnwindSafe for Group<Data>
impl<Data> !Send for Group<Data>
impl<Data> !Sync for Group<Data>
impl<Data> UnwindSafe for Group<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