#[repr(C)]pub struct SpawnConfig {
pub version: u8,
pub name: RawSlice<u8>,
pub argv: RawSliceMut<RawSlice<u8>>,
pub flags: SpawnFlags,
pub stdio: *const TaskStdio,
pub env: RawSliceMut<RawSlice<u8>>,
}Expand description
configuration for the spawn syscall
Fields§
§version: 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
name: RawSlice<u8>§argv: RawSliceMut<RawSlice<u8>>§flags: SpawnFlags§stdio: *const TaskStdio§env: RawSliceMut<RawSlice<u8>>Implementations§
Source§impl SpawnConfig
impl SpawnConfig
pub fn new( name: &str, argv: *mut [&[u8]], env: *mut [&[u8]], flags: SpawnFlags, stdio: &TaskStdio, ) -> SpawnConfig
Auto Trait Implementations§
impl Freeze for SpawnConfig
impl RefUnwindSafe for SpawnConfig
impl !Send for SpawnConfig
impl !Sync for SpawnConfig
impl Unpin for SpawnConfig
impl UnwindSafe for SpawnConfig
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