pub struct ItemType<Container, Data> { /* private fields */ }Expand description
A representation of the attributes that will appear in a Group or
Subsystem.
Users should not directly instantiate objects of this type. Rather, they
should use the kernel::configfs_attrs macro to statically declare the
shape of a Group or Subsystem.
Implementations§
Source§impl<Container, Data> ItemType<Container, Data>
impl<Container, Data> ItemType<Container, Data>
Sourcepub fn project<'__this>(
self: Pin<&'__this mut Self>,
) -> __Projection<'__this, Container, Data>
pub fn project<'__this>( self: Pin<&'__this mut Self>, ) -> __Projection<'__this, Container, Data>
Pin-projects all fields of Self.
These fields are structurally pinned:
item_type
These fields are not structurally pinned:
_p
Sourcepub fn with_project<'__this, R>(
self: Pin<&'__this mut Self>,
f: impl FnOnce(__ProjectionLt<'__this, Container, Data>) -> R,
) -> R
pub fn with_project<'__this, R>( self: Pin<&'__this mut Self>, f: impl FnOnce(__ProjectionLt<'__this, Container, Data>) -> R, ) -> R
Pin-projects all fields of Self with proper lifetime.
These fields are structurally pinned:
item_type
These fields are not structurally pinned:
_p
Sourcepub fn with_project_ref<'__this, R>(
self: Pin<&'__this Self>,
f: impl FnOnce(__ProjectionRef<'__this, Container, Data>) -> R,
) -> R
pub fn with_project_ref<'__this, R>( self: Pin<&'__this Self>, f: impl FnOnce(__ProjectionRef<'__this, Container, Data>) -> R, ) -> R
Pin-projects all fields of Self from a shared reference with proper lifetime.
These fields are structurally pinned:
item_type
These fields are not structurally pinned:
_p
Trait Implementations§
impl<Container, Data> Send for ItemType<Container, Data>
impl<Container, Data> Sync for ItemType<Container, Data>
Auto Trait Implementations§
impl<Container, Data> !Freeze for ItemType<Container, Data>
impl<Container, Data> !RefUnwindSafe for ItemType<Container, Data>
impl<Container, Data> !UnsafeUnpin for ItemType<Container, Data>
impl<Container, Data> UnwindSafe for ItemType<Container, Data>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.