pub enum DebugRequest {
Message {
node_name: String,
command: String,
args: Vec<String>,
responder: DebugMessageResponder,
},
}
Expand description
Exposes a debug control interface to the Power Manager.
Variants§
Message
Sends a debug message to the specified Power Manager node.
node_name
is the name of the Power Manager node to message. A list of node names for a given device can be found in the device-specific node config file here.command
is the node-specific command to be sent to the specified node. The supported commands for a given node can be found by inspecting that node’s source.args
is a vector of arguments to be sent that may be required by the node to execute the command.
For example, to override the SOC temperature to 40C on Astro (according
to the current node
configuration
and TemperatureHandler
implementation:
```
Message(
"temperature_soc_pll",
"set_temperature",
[ "40" ]
)
```
Implementations§
Source§impl DebugRequest
impl DebugRequest
pub fn into_message( self, ) -> Option<(String, String, Vec<String>, DebugMessageResponder)>
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 DebugRequest
impl !RefUnwindSafe for DebugRequest
impl Send for DebugRequest
impl Sync for DebugRequest
impl Unpin for DebugRequest
impl !UnwindSafe for DebugRequest
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