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§
source§impl<Data> HasGroup<Data> for Group<Data>
impl<Data> HasGroup<Data> for Group<Data>
source§unsafe fn group(this: *const Self) -> *const config_group
unsafe fn group(this: *const Self) -> *const config_group
source§unsafe fn container_of(group: *const config_group) -> *const Self
unsafe fn container_of(group: *const config_group) -> *const Self
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