pub struct TaskRef<'a> { /* private fields */ }
Expand description

A wrapper for a shared reference to Task that isn’t Send.

We make this explicitly not Send so that we can use it to represent the current thread without having to increment/decrement the task’s reference count.

Invariants

The wrapped Task remains valid for the lifetime of the object.

Methods from Deref<Target = Task>

Returns the group leader of the given task.

Returns the PID of the given task.

Determines whether the given task has pending signals.

Wakes up the task.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.