Fix latency issue

This commit is contained in:
Michael Mikovsky
2025-12-21 17:58:04 -07:00
parent 78fda07ab2
commit 1d7845e725
15 changed files with 1113 additions and 120 deletions
+7 -1
View File
@@ -3,7 +3,7 @@ use std::fmt;
pub type Result<T> = std::result::Result<T, ModuleError>;
///Generic error type for module-related operations.
#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
pub enum ModuleError {
LibLoadingError(String),
// LogError(log::SetLoggerError),
@@ -54,3 +54,9 @@ impl fmt::Display for ModuleError {
f.write_str(format!("{:?}", self).as_str())
}
}
impl From<ModuleError> for std::string::String {
fn from(value: ModuleError) -> Self {
value.to_string()
}
}