Struct r3_kernel::TaskAttr

source ·
pub struct TaskAttr<Traits: KernelCfg1, TaskPriority: 'static = <Traits as KernelCfg1>::TaskPriority> {
    pub entry_point: unsafe extern "C" fn(_: ClosureEnv),
    pub entry_param: ClosureEnv,
    pub stack: StackHunk<Traits>,
    pub priority: TaskPriority,
}
Expand description

The static properties of a task.

Fields§

§entry_point: unsafe extern "C" fn(_: ClosureEnv)

The entry point of the task.

Safety

This is only meant to be used by a kernel port, as a task entry point, not by user code. Using this in other ways may cause an undefined behavior.

§entry_param: ClosureEnv

The parameter supplied for entry_point.

§stack: StackHunk<Traits>

The hunk representing the stack region for the task.

§priority: TaskPriority

The initial base priority of the task.

Trait Implementations§

source§

impl<Traits: KernelTraits, TaskPriority: Debug> Debug for TaskAttr<Traits, TaskPriority>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Traits, TaskPriority> RefUnwindSafe for TaskAttr<Traits, TaskPriority>where TaskPriority: RefUnwindSafe, Traits: RefUnwindSafe,

§

impl<Traits, TaskPriority> Send for TaskAttr<Traits, TaskPriority>where TaskPriority: Send,

§

impl<Traits, TaskPriority> Sync for TaskAttr<Traits, TaskPriority>where TaskPriority: Sync, Traits: KernelCfg2,

§

impl<Traits, TaskPriority> Unpin for TaskAttr<Traits, TaskPriority>where TaskPriority: Unpin, Traits: Unpin,

§

impl<Traits, TaskPriority> UnwindSafe for TaskAttr<Traits, TaskPriority>where TaskPriority: UnwindSafe, Traits: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.