#[repr(C)]pub struct PSpawnConfig {
pub revision: u8,
pub name: RawSlice<u8>,
pub argv: RawSliceMut<RawSlice<u8>>,
pub flags: SpawnFlags,
pub stdio: *const TaskStdio,
pub env: RawSliceMut<RawSlice<u8>>,
pub priority: Optional<ContextPriority>,
}Expand description
configuration for the spawn syscall
Fields§
§revision: u8config version for compatibility added in kernel version 0.2.1 and therefore breaking compatibility with any program compiled for version below 0.2.1 revision 1: added env revision 2: added priority (v0.4.0)
name: RawSlice<u8>§argv: RawSliceMut<RawSlice<u8>>§flags: SpawnFlags§stdio: *const TaskStdio§env: RawSliceMut<RawSlice<u8>>§priority: Optional<ContextPriority>Implementations§
Source§impl PSpawnConfig
impl PSpawnConfig
pub fn new( name: &str, argv: *mut [&[u8]], env: *mut [&[u8]], flags: SpawnFlags, stdio: &TaskStdio, priority: Option<ContextPriority>, ) -> PSpawnConfig
Auto Trait Implementations§
impl Freeze for PSpawnConfig
impl RefUnwindSafe for PSpawnConfig
impl !Send for PSpawnConfig
impl !Sync for PSpawnConfig
impl Unpin for PSpawnConfig
impl UnwindSafe for PSpawnConfig
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