pub fn awaken(&mut self) {
        if !self.is_alive() {
            panic!("Tried to wake a {:?} process", self.state);
        }

        self.state = State::Running;
    }
/// Set the process's state to `Running` if it was `Sleeping`.
///
/// Make sure to call this before pushing a process onto the scheduler.
///
/// # Panics
///
/// Panics if the current state is neither `Running` nor `Sleeping`.
Set the process's state to `Running` if it was `Sleeping`.
Make sure to call this before pushing a process onto the scheduler.
Set the process ' s state to ` Running ` if it was ` Sleeping ` . Make sure to call this before pushing a process onto the scheduler .
pub fn awaken(&mut self) {
        if !self.is_alive() {
            panic!("Tried to wake a {:?} process", self.state);
        }
        self.state = State::Running;
    }
pub fn awaken ( & mut self ) { if ! self . is_alive ( ) { panic ! ( " " self state ) ; } self . state = State :: Running ; }
Set the process's state to `Running` if it was `Sleeping`.
Set the process ' s state to ` Running ` if it was ` Sleeping ` .
&mut self
panics
Panics if the current state is neither `Running` nor `Sleeping`.
Panics if the current state is neither ` Running ` nor ` Sleeping ` .