Struct videocore_gencmd::gencmd::Gencmd [−][src]
pub struct Gencmd { /* fields omitted */ }
Expand description
A wrapper around the gencmd interface.
This holds an internal buffer for communication and an Arc to the instance.
Implementations
pub fn send_cmd_raw(
&mut self,
instance: &mut GlobalInstance,
command: &str
) -> Result<&str, GencmdCmdError>
pub fn send_cmd_raw(
&mut self,
instance: &mut GlobalInstance,
command: &str
) -> Result<&str, GencmdCmdError>
Send a string command and receive a string response.
This function does not parse the response unless it is the error.
pub fn send_cmd<'a, C: Command<'a>>(
&'a mut self,
instance: &mut GlobalInstance
) -> Result<C::Response, GencmdCmdError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Gencmd
impl UnwindSafe for Gencmd
Blanket Implementations
Mutably borrows from an owned value. Read more