pub enum UserbootRequest {
PostBootfsFiles {
files: Vec<BootfsFileVmo>,
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.
TODO(https://fxbug.dev/354275371): Move handles not participating in the bootstrap process to this protocol.
Variants§
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.
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_files( self, ) -> Option<(Vec<BootfsFileVmo>, 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