create constructors for VmcExtSetConfig

This commit is contained in:
Cassandra de la Cruz-Munoz 2024-01-01 14:11:09 -05:00
parent e772c9e817
commit 336f9435fb
Signed by: cassdlcm
GPG Key ID: BFEBACEA812DDA70

View File

@ -1939,7 +1939,7 @@ impl VmcExtSetCalibExec {
}
#[derive(Debug)]
struct VmcExtSetConfig {
pub struct VmcExtSetConfig {
path: String
}
@ -1963,6 +1963,18 @@ impl VmcMessage for VmcExtSetConfig {
}
}
impl VmcExtSetConfig {
pub fn new(path: String) -> MsgNewResult<Self> {
Ok(Self { path })
}
pub fn new_vmc_message(path: String) -> TraitMsgNewResult {
match Self::new(path) {
Ok(val) => Ok(Box::new(val)),
Err(val) => Err(val)
}
}
}
#[derive(Debug)]
struct VmcMessageNoArgs {
addr: String