pub struct SystemHandles {
pub root_job: Job,
pub vmex_resource: Resource,
pub power_resource: Option<Resource>,
pub vdso_vmo: Vmo,
pub zbi_vmo: Vmo,
pub log: SystemLog,
pub startup_handles: Vec<StartupHandle>,
}Expand description
Essential system handles extracted from the bootstrap capabilities message required to setup and launch the next program.
Fields§
§root_job: JobRoot job handle for creating child processes and default jobs.
vmex_resource: ResourceVMEX resource handle for creating executable VMOs.
power_resource: Option<Resource>Power resource handle for power off / shutdown.
vdso_vmo: VmoHandle to the stable vDSO VMO.
zbi_vmo: VmoHandle to the ZBI VMO containing boot payload.
log: SystemLogHandle to the debug log or log socket.
startup_handles: Vec<StartupHandle>Additional startup handles (resources, vDSOs, kernel files) to pass to the child process.
Implementations§
Source§impl SystemHandles
impl SystemHandles
Sourcepub fn from_handles(
handles: impl IntoIterator<Item = HandleInfo>,
) -> Result<Self, Error>
pub fn from_handles( handles: impl IntoIterator<Item = HandleInfo>, ) -> Result<Self, Error>
Extracts essential system handles from the provided handle iterator.
Auto Trait Implementations§
impl Freeze for SystemHandles
impl RefUnwindSafe for SystemHandles
impl Send for SystemHandles
impl Sync for SystemHandles
impl Unpin for SystemHandles
impl UnsafeUnpin for SystemHandles
impl UnwindSafe for SystemHandles
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]