pub enum ControllerRequest {
VsockConnect {
payload: ControllerVsockConnectRequest,
control_handle: ControllerControlHandle,
},
SpawnConsole {
payload: ControllerSpawnConsoleRequest,
responder: ControllerSpawnConsoleResponder,
},
GetVmoReferences {
payload: ControllerGetVmoReferencesRequest,
responder: ControllerGetVmoReferencesResponder,
},
GetJobHandle {
responder: ControllerGetJobHandleResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ControllerControlHandle,
method_type: MethodType,
},
}
Variants§
VsockConnect
Connects bridge_socket
to a vsocket at port
in the container.
SpawnConsole
Spawn a console for debugging in the container. For testing, prefer launching Linux programs
as components with the starnix_container
runner.
Returns when the console exits.
GetVmoReferences
Returns all processes that have open files that are backed by a vmo with koid.
GetJobHandle
Returns the job handle of the container.
Fields
§
responder: ControllerGetJobHandleResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: ControllerControlHandle
§
method_type: MethodType
Implementations§
Source§impl ControllerRequest
impl ControllerRequest
pub fn into_vsock_connect( self, ) -> Option<(ControllerVsockConnectRequest, ControllerControlHandle)>
pub fn into_spawn_console( self, ) -> Option<(ControllerSpawnConsoleRequest, ControllerSpawnConsoleResponder)>
pub fn into_get_vmo_references( self, ) -> Option<(ControllerGetVmoReferencesRequest, ControllerGetVmoReferencesResponder)>
pub fn into_get_job_handle(self) -> Option<ControllerGetJobHandleResponder>
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 ControllerRequest
impl !RefUnwindSafe for ControllerRequest
impl Send for ControllerRequest
impl Sync for ControllerRequest
impl Unpin for ControllerRequest
impl !UnwindSafe for ControllerRequest
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