Skip to main content

XilaStartup

Struct XilaStartup 

Source
#[repr(C)]
pub struct XilaStartup { pub size: u32, pub api: *const XilaApi, pub heap: *mut Heap, pub arguments: *const XilaString, pub argument_count: usize, pub standard_input: *mut File, pub standard_output: *mut File, pub standard_error: *mut File, pub home: *mut Directory, pub process: *const Process, pub program_name: XilaString, pub network: *const Network, }
Expand description

Host-owned startup data, valid only for the duration of the entry call. The API is always present. Capability pointers may be null when not granted; the process capability is null for an application that is not a process, such as a built-in one linked into the firmware, whose process calls fail with InvalidArgument. A null argument array has argument_count zero. Fields are only ever appended: check size before reading a field that a later Xila version added, such as network. Applications must not close, retain or transfer these objects; closing them is undefined behavior. Objects opened by the application must still be closed.

Fields§

§size: u32§api: *const XilaApi§heap: *mut Heap§arguments: *const XilaString§argument_count: usize§standard_input: *mut File§standard_output: *mut File§standard_error: *mut File§home: *mut Directory§process: *const Process§program_name: XilaString

Executable’s launch name. Empty for a linked entry without a process.

§network: *const Network

Network authority granted to the process, with only the rights its launch granted explicitly (connect, listen, resolve). Null unless the launch granted at least one right and the host has a network stack, so a process has no network by default. Appended after program_name, so images built before it existed still start.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.