logo
pub struct System<Traits>(_);
Expand description

Wraps a provided trait type Traits to instantiate a kernel. This type implements the traits from r3_core::kernel::raw, making it usable as a kernel, if Traits implements some appropriate traits, which consequently make it implement KernelTraits.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Implement KernelStatic<System<Traits>> on System<Traits> if the same trait is implemented on Traits.

Get an object that implements Debug for dumping the current kernel state.

Note that printing this object might consume a large amount of stack space.

Return a flag indicating whether CPU Lock is currently active.

Implements Kernel::park. Read more

The type to identify tasks.

Get the current task.

The type to identify event groups.

The type to identify timers.

Implements Timer::start. Read more

Implements Timer::stop. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Get an object that implements Debug for dumping the current kernel state. Read more

Activate CPU Lock. Read more

Deactivate CPU Lock. Read more

Return a flag indicating whether CPU Lock is currently active.

Return a flag indicating whether Priority Boost is currently active. Read more

Return a flag indicating whether the calling context is a task context. Read more

Return a flag indicating whether the calling context is an interrupt context. Read more

Return a flag indicating whether the boot phase is complete, i.e., all startup hooks completed execution, and the kernel started scheduling tasks and taking interrupts. Read more

Set the current system time. Read more

Get the current system time. Read more

The extent of how overdue a timed event can be made or how far a timed event can be delayed past Duration::MAX by a call to adjust_time. Read more

Move the current system time forward or backward by the specified amount. Read more

Terminate the current task, putting it into the Dormant state. Read more

Put the current task into the Waiting state until the task’s token is made available by Task::unpark. The token is initially absent when the task is activated. Read more

park with timeout. Read more

Block the current task for the specified duration.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.