create constructors for VmcExtSetRes
This commit is contained in:
parent
43635f599f
commit
7f4e0faf09
14
src/lib.rs
14
src/lib.rs
|
@ -1859,7 +1859,7 @@ impl VmcExtSetEye {
|
|||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct VmcExtSetRes {
|
||||
pub struct VmcExtSetRes {
|
||||
response: String
|
||||
}
|
||||
|
||||
|
@ -1883,6 +1883,18 @@ impl VmcMessage for VmcExtSetRes {
|
|||
}
|
||||
}
|
||||
|
||||
impl VmcExtSetRes {
|
||||
pub fn new(response: String) ->MsgNewResult<Self> {
|
||||
Ok(Self { response })
|
||||
}
|
||||
pub fn new_vmc_message(response: String) ->TraitMsgNewResult {
|
||||
match Self::new(response) {
|
||||
Ok(val) => Ok(Box::new(val)),
|
||||
Err(val) => Err(val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct VmcExtSetCalibExec {
|
||||
mode: i32
|
||||
|
|
Loading…
Reference in New Issue
Block a user