Skip to main content

Crate executable

Crate executable 

Source

Re-exports§

pub use file_system as exported_file_system;
pub use task as exported_task;
pub use virtual_file_system as exported_virtual_file_system;

Macros§

mount_executables

Structs§

ExecutableContext
ExecutableFormat
Platform registration for a four-byte file magic. The context searches registrations in order. Mounted executables continue to use their control command.
ExecutableWrapper
FormatRequest
GET_MAIN_FUNCTION
Home
A directory capability a launched program gets as its home, bound to its own task.
Identity
The user and group a launched program runs as, instead of its parent’s.
Launch
Optional parameters of a launch beyond the program’s arguments and streams.
MainFunctionAbi
Plain-data payload of GET_MAIN_FUNCTION: the two words of a MainFunction fat pointer, so the payload size and layout are unchanged. A function pointer is not plain data, so the payload type is this mirror; the host converts it back where the value is read.
NetworkRights
The network rights a launch grants a native process: connecting (and sending datagrams), listening (and binding) and resolving names. A launch grants none by default.
Standard

Enums§

Error

Traits§

ExecutableTrait
FormatHandler
Start a registered file format and return the child’s exit-status handle and task.

Functions§

execute
execute_with
Like execute, with launch parameters: an explicit environment for the new task (any executable) and a home capability (native executables). The new task is a child of the calling task and starts with a copy of its environment otherwise.
is_execute_allowed
Check execute permissions for a user using the same owner, group and root rules as execute. This checks permissions only; it does not open the file or validate its executable format.

Type Aliases§

FormatLaunch
MainFunction
MainFuture
Result