[][src]Struct r3::kernel::cfg::CfgBuilder

pub struct CfgBuilder<System> { /* fields omitted */ }

A kernel configuration being constructed.

Implementations

impl<System> CfgBuilder<System>[src]

pub const fn num_task_priority_levels(&mut self, new_value: usize)[src]

Specify the number of task priority levels. The default value is 4.

Must be in range 1..4096. The actual upper bound might be larger depending on the internal implementation.

The RAM consumption by task ready queues is proportional to the number of task priority levels. In addition, the scheduler is heavily optimized for the cases where the number is very small (e.g., < 16). The performance improvement can be notable especially if the target processor does not have a CTZ (count trailing zero) instruction, barrel shifter, or hardware multiplier.

Auto Trait Implementations

impl<System> Send for CfgBuilder<System> where
    System: Send

impl<System> Sync for CfgBuilder<System> where
    System: Sync

impl<System> Unpin for CfgBuilder<System> where
    System: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.