pub enum ControllerRequest {
VsockConnect {
payload: ControllerVsockConnectRequest,
control_handle: ControllerControlHandle,
},
SpawnConsole {
payload: ControllerSpawnConsoleRequest,
responder: ControllerSpawnConsoleResponder,
},
GetVmoReferences {
payload: ControllerGetVmoReferencesRequest,
responder: ControllerGetVmoReferencesResponder,
},
GetJobHandle {
responder: ControllerGetJobHandleResponder,
},
SendSignal {
payload: ControllerSendSignalRequest,
responder: ControllerSendSignalResponder,
},
SetSyscallLogFilter {
payload: ControllerSetSyscallLogFilterRequest,
responder: ControllerSetSyscallLogFilterResponder,
},
ClearSyscallLogFilters {
responder: ControllerClearSyscallLogFiltersResponder,
},
#[non_exhaustive] _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: ControllerGetJobHandleResponderSendSignal
Sends the provided signal to the process with the given pid.
SetSyscallLogFilter
Sets a filter to log syscalls at INFO level for processes matching process_name.
Fields
§
responder: ControllerSetSyscallLogFilterResponderClearSyscallLogFilters
Clears all syscall log filters.
Fields
§
responder: ControllerClearSyscallLogFiltersResponder#[non_exhaustive]_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: MethodTypeImplementations§
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>
pub fn into_send_signal( self, ) -> Option<(ControllerSendSignalRequest, ControllerSendSignalResponder)>
pub fn into_set_syscall_log_filter( self, ) -> Option<(ControllerSetSyscallLogFilterRequest, ControllerSetSyscallLogFilterResponder)>
pub fn into_clear_syscall_log_filters( self, ) -> Option<ControllerClearSyscallLogFiltersResponder>
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