pub struct Program {
pub name: &'static str,
pub desc: &'static str,
pub entry: TaskRoutineArg<usize>,
pub default_arg: usize,
pub priority: u8,
pub stack_size: StackSize,
}Expand description
Describes a runnable program that can be launched from the shell.
Fields§
§name: &'static strProgram name used in shell commands.
desc: &'static strShort human-readable description shown by list.
entry: TaskRoutineArg<usize>Task entry function invoked when the program is executed.
default_arg: usizeDefault argument passed when the user omits one.
priority: u8Task priority used when spawning the program.
stack_size: StackSizeStack size requested for the task.
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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