diff --git a/src/lib.rs b/src/lib.rs index c1f18af..805142f 100644 --- a/src/lib.rs +++ b/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 { + 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