pub struct Task_type { /* private fields */ }
Expand description
A wrapper for individual tasks that are managed by crate::Manager_type.
Implementations§
Source§impl Task_type
impl Task_type
Sourcepub fn New_child_task<T, F>(
&self,
Name: &str,
Stack_size: Option<usize>,
Function: F,
) -> Result_type<(Task_type, Join_handle_type<T>)>
pub fn New_child_task<T, F>( &self, Name: &str, Stack_size: Option<usize>, Function: F, ) -> Result_type<(Task_type, Join_handle_type<T>)>
Create a new child task.
pub fn Get_current_task() -> Result_type<Self>
pub fn Get_name(&self) -> Result_type<String>
pub fn Get_identifier(&self) -> Task_identifier_type
pub fn Get_owner(&self) -> Result_type<User_identifier_type>
pub fn Get_environment_variable( &self, Name: &str, ) -> Result_type<Environment_variable_type>
pub fn Set_environment_variable( &self, Name: &str, Value: &str, ) -> Result_type<()>
pub fn Remove_environment_variable(&self, Name: &str) -> Result_type<()>
Auto Trait Implementations§
impl Freeze for Task_type
impl RefUnwindSafe for Task_type
impl Send for Task_type
impl Sync for Task_type
impl Unpin for Task_type
impl UnwindSafe for Task_type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more