pub struct Registration { /* private fields */ }Expand description
Registration handle for your soc_dev. If you let it go out of scope, your soc_dev will be unregistered.
Implementations§
Source§impl Registration
impl Registration
Sourcepub fn project<'__this>(self: Pin<&'__this mut Self>) -> __Projection<'__this>
pub fn project<'__this>(self: Pin<&'__this mut Self>) -> __Projection<'__this>
Pin-projects all fields of Self.
These fields are structurally pinned:
attr
These fields are not structurally pinned:
soc_dev
Sourcepub fn with_project<'__this, R>(
self: Pin<&'__this mut Self>,
f: impl FnOnce(__ProjectionLt<'__this>) -> R,
) -> R
pub fn with_project<'__this, R>( self: Pin<&'__this mut Self>, f: impl FnOnce(__ProjectionLt<'__this>) -> R, ) -> R
Pin-projects all fields of Self with proper lifetime.
These fields are structurally pinned:
attr
These fields are not structurally pinned:
soc_dev
Sourcepub fn with_project_ref<'__this, R>(
self: Pin<&'__this Self>,
f: impl FnOnce(__ProjectionRef<'__this>) -> R,
) -> R
pub fn with_project_ref<'__this, R>( self: Pin<&'__this Self>, f: impl FnOnce(__ProjectionRef<'__this>) -> R, ) -> R
Pin-projects all fields of Self from a shared reference with proper lifetime.
These fields are structurally pinned:
attr
These fields are not structurally pinned:
soc_dev
Source§impl Registration
impl Registration
Sourcepub fn new(attr: Attributes) -> impl PinInit<Self, Error>
pub fn new(attr: Attributes) -> impl PinInit<Self, Error>
Register a new SoC device
Trait Implementations§
Source§impl Drop for Registration
impl Drop for Registration
Source§impl HasPinData for Registration
impl HasPinData for Registration
Source§impl PinnedDrop for Registration
impl PinnedDrop for Registration
impl Send for Registration
impl Sync for Registration
Auto Trait Implementations§
impl !Freeze for Registration
impl !RefUnwindSafe for Registration
impl !UnsafeUnpin for Registration
impl UnwindSafe for Registration
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.