pub enum LoaderRequest {
Done {
control_handle: LoaderControlHandle,
},
LoadObject {
object_name: String,
responder: LoaderLoadObjectResponder,
},
Config {
config: String,
responder: LoaderConfigResponder,
},
Clone {
loader: ServerEnd<LoaderMarker>,
responder: LoaderCloneResponder,
},
}
Expand description
See //docs/concepts/process/program_loading.md for a more complete description of this and related process bootstrapping protocols, and for specifics about the default global loader service’s interpretation of names, paths, and configurations.
Variants§
Done
Cleanly shutdown the connection to the Loader service.
Fields
§
control_handle: LoaderControlHandle
LoadObject
The dynamic linker sends object_name
and gets back a VMO
handle containing the file.
Config
The dynamic linker sends a config
identifying its load
configuration. This is intended to affect how later
LoadObject
requests decide what particular implementation
file to supply for a given name.
Clone
Obtain a new loader service connection.
Implementations§
Source§impl LoaderRequest
impl LoaderRequest
pub fn into_done(self) -> Option<LoaderControlHandle>
pub fn into_load_object(self) -> Option<(String, LoaderLoadObjectResponder)>
pub fn into_config(self) -> Option<(String, LoaderConfigResponder)>
pub fn into_clone( self, ) -> Option<(ServerEnd<LoaderMarker>, LoaderCloneResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoaderRequest
impl !RefUnwindSafe for LoaderRequest
impl Send for LoaderRequest
impl Sync for LoaderRequest
impl Unpin for LoaderRequest
impl !UnwindSafe for LoaderRequest
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