# [−][src]Struct mynewt::kernel::os::os_task

    #[repr(C)]
    pub struct os_task {
        pub t_stackptr: *mut os_stack_t,
        pub t_stacktop: *mut os_stack_t,
        pub t_stacksize: u16,
        pub t_taskid: u8,
        pub t_prio: u8,
        pub t_state: u8,
        pub t_flags: u8,
        pub t_lockcnt: u8,
        pub t_pad: u8,
        pub t_name: *const c_char,
        pub t_func: os_task_func_t,
        pub t_arg: *mut c_void,
        pub t_obj: *mut c_void,
        pub t_sanity_check: os_sanity_check,
        pub t_next_wakeup: os_time_t,
        pub t_run_time: os_time_t,
        pub t_ctx_sw_cnt: u32,
        pub t_os_task_list: os_task__bindgen_ty_1,
        pub t_os_list: os_task__bindgen_ty_2,
        pub t_obj_list: os_task__bindgen_ty_3,
    }

@cond INTERNAL_HIDDEN

## Fields

`t_stackptr: *mut os_stack_t`

Current stack pointer for this task

`t_stacktop: *mut os_stack_t`

Pointer to top of this task's stack

`t_stacksize: u16`

Size of this task's stack

`t_taskid: u8`

Task ID

`t_prio: u8`

Task Priority

`t_state: u8` `t_flags: u8`

Task flags, bitmask

`t_lockcnt: u8` `t_pad: u8` `t_name: *const c_char`

Task name

`t_func: os_task_func_t`

Task function that executes

`t_arg: *mut c_void`

Argument to pass to task function when called

`t_obj: *mut c_void`

Current object task is waiting on, either a semaphore or mutex

`t_sanity_check: os_sanity_check`

Default sanity check for this task

`t_next_wakeup: os_time_t`

Next scheduled wakeup if this task is sleeping

`t_run_time: os_time_t`

Total task run time

`t_ctx_sw_cnt: u32`

Total number of times this task has been context switched during execution.

`t_os_task_list: os_task__bindgen_ty_1` `t_os_list: os_task__bindgen_ty_2` `t_obj_list: os_task__bindgen_ty_3`

## Trait Implementations

### `impl Default for os_task`[src]

#### `fn default() -> Self`[src]

Returns the "default value" for a type. Read more

## Auto Trait Implementations

### `impl !Send for os_task`

### `impl !Sync for os_task`

## Blanket Implementations

### `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.

#### `fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`[src]

Performs the conversion.

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

#### `fn from(t: T) -> T`[src]

Performs the conversion.

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

#### `fn into(self) -> U`[src]

Performs the conversion.

### `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.

#### `fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`[src]

Performs the conversion.

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

#### `fn borrow(&self) -> &T`[src]

Immutably borrows from an owned value. Read more

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

#### `fn borrow_mut(&mut self) -> &mut T`[src]

Mutably borrows from an owned value. Read more

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

#### `fn type_id(&self) -> TypeId`[src]

Gets the `TypeId` of `self`. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)