Struct esp_idf_sys::xTASK_STATUS

source ·
#[repr(C)]
pub struct xTASK_STATUS { pub xHandle: TaskHandle_t, pub pcTaskName: *const c_char, pub xTaskNumber: UBaseType_t, pub eCurrentState: eTaskState, pub uxCurrentPriority: UBaseType_t, pub uxBasePriority: UBaseType_t, pub ulRunTimeCounter: u32, pub pxStackBase: *mut StackType_t, pub usStackHighWaterMark: u32, }
Expand description

Used with the uxTaskGetSystemState() function to return the state of each task in the system.

Fields§

§xHandle: TaskHandle_t

< The handle of the task to which the rest of the information in the structure relates.

§pcTaskName: *const c_char

< A pointer to the task’s name. This value will be invalid if the task was deleted since the structure was populated!

§xTaskNumber: UBaseType_t

< A number unique to the task.

§eCurrentState: eTaskState

< The state in which the task existed when the structure was populated.

§uxCurrentPriority: UBaseType_t

< The priority at which the task was running (may be inherited) when the structure was populated.

§uxBasePriority: UBaseType_t

< The priority to which the task will return if the task’s current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h.

§ulRunTimeCounter: u32

< The total run time allocated to the task so far, as defined by the run time stats clock. See https://www.FreeRTOS.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h.

§pxStackBase: *mut StackType_t

< Points to the lowest address of the task’s stack area.

§usStackHighWaterMark: u32

< The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack.

Trait Implementations§

source§

impl Clone for xTASK_STATUS

source§

fn clone(&self) -> xTASK_STATUS

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for xTASK_STATUS

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for xTASK_STATUS

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for xTASK_STATUS

Auto Trait Implementations§

§

impl Freeze for xTASK_STATUS

§

impl RefUnwindSafe for xTASK_STATUS

§

impl !Send for xTASK_STATUS

§

impl !Sync for xTASK_STATUS

§

impl Unpin for xTASK_STATUS

§

impl UnwindSafe for xTASK_STATUS

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
§

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

Performs the conversion.
§

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

§

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

The type returned in the event of a conversion error.
§

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

Performs the conversion.