Struct itron_solid_asp3::task::TaskRef[][src]

pub struct TaskRef<'a> { /* fields omitted */ }
This is supported on crate feature unstable only.
Expand description

A borrowed reference to a task.

Implementations

Construct a TaskRef from a raw object ID.

Safety

See Object ID Wrappers.

Get the raw object ID.

Get the raw object ID as abi::NonNullID.

act_tsk: Pend an activation request for the task.

mact_tsk: Pend an activation request for the task, assigning it to the specified processor.

can_act: Cancel any pending activation requests for the task. Returns the number of cancelled requests.

chg_pri: Change the task’s base priority.

get_pri: Get the task’s priority.

Use TaskRef::info and Info::base_priority to get the base priority.

mig_tsk: Change the task’s assigned processor.

This is supported on crate feature dcre only.

del_tsk: Delete the task.

Safety

See Object ID Wrappers.

get_tst: Get the task’s state.

ref_tsk: Get the task’s general information.

wup_tsk: Pend a wake up request for the task.

This method and the sleep function are semantically analogous to std::thread::Thread::unpark and std::thread::park, respectively. However, unlike unpark, this method will return Err(WakeError::QueueOverflow) if the token is already present.

can_wup: Cancel any wake up requests for the task. Returns the number of cancelled requests.

rel_wai: Forcibly release the task from waiting.

sus_tsk: Suspend the task.

rsm_tsk: Resume the task.

ter_tsk: Terminate the task.

Safety

If the task’s stack is reused later, stored local variables are destroyed without running their destructors, violating the pinning requirements.

ras_ter: Pend a termination request.

Safety

If the task’s stack is reused later, stored local variables are destroyed without running their destructors, violating the pinning requirements.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.