pub enum UserbootRequest {
PostBootfsVmo {
bootfs: Vmo,
control_handle: UserbootControlHandle,
},
PostBootfsFiles {
files: Vec<BootfsFileVmo>,
control_handle: UserbootControlHandle,
},
PostBootHandles {
payload: UserbootPostBootHandlesRequest,
control_handle: UserbootControlHandle,
},
PostStashSvc {
stash_svc_endpoint: ServerEnd<SvcStashMarker>,
control_handle: UserbootControlHandle,
},
}Expand description
Protocol for communication between userboot and the process booted by userboot.
The userboot process will act as a client, pipelining requests containing information and/or handles that might be useful for the booted process. The booted process, or whoever processes the server endpoint of this protocol, will then process the pipelined requests from userboot.
Variants§
PostBootfsVmo
Posts the uncompressed bootfs VMO.
PostBootfsFiles
Posts a set of BootfsFileVmo that were used for launching the userboot.next= program and are no longer
available in the big BootfsVmo.
Messages will only become available after the Userboot protocol client end (userboot’s handle)
has been closed.
PostBootHandles
Posts non-bootstrap handles provided by the kernel to the booted process.
PostStashSvc
Posts svc_stash server endpoint. For more information refer to fuchsia.boot.SvcStash.
Implementations§
Source§impl UserbootRequest
impl UserbootRequest
pub fn into_post_bootfs_vmo(self) -> Option<(Vmo, UserbootControlHandle)>
pub fn into_post_bootfs_files( self, ) -> Option<(Vec<BootfsFileVmo>, UserbootControlHandle)>
pub fn into_post_boot_handles( self, ) -> Option<(UserbootPostBootHandlesRequest, UserbootControlHandle)>
pub fn into_post_stash_svc( self, ) -> Option<(ServerEnd<SvcStashMarker>, UserbootControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL