[−][src]Struct r3::kernel::Hunk
Represents a single hunk in a system.
Hunks are nothing more than static variables defined in a kernel configuration. They come in handy when you are designing a component that can be instantiated by a kernel configuration and wanting each instance to have its own separate state data.
This Hunk
is untyped and only contains a starting address. See
r3::hunk::Hunk
for a type-safe wrapper of Hunk
.
Relation to Other Specifications: None. The need for programmatically defining static regions has been traditionally fulfilled by code generation and preprocessor-based composition. The closest thing might be cell internal variables in the component system that comes with the TOPPERS kernels.
Implementations
impl<System: Port> Hunk<System>
[src]
pub const fn build() -> CfgHunkBuilder<System>
[src]
Construct a CfgTaskBuilder
to define a hunk in a configuration
function.
impl<System> Hunk<System>
[src]
impl<System: Kernel> Hunk<System>
[src]
Trait Implementations
impl<System> Clone for Hunk<System>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<System> Copy for Hunk<System>
[src]
impl<System: Kernel> Debug for Hunk<System>
[src]
impl<System> Init for Hunk<System>
[src]
Auto Trait Implementations
impl<System> Send for Hunk<System> where
System: Send,
System: Send,
impl<System> Sync for Hunk<System> where
System: Sync,
System: Sync,
impl<System> Unpin for Hunk<System> where
System: Unpin,
System: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,