mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Start to make dynamic interfaces work
This commit is contained in:
+3
-10
@@ -1,25 +1,18 @@
|
||||
#![no_main]
|
||||
|
||||
pub mod config;
|
||||
mod error;
|
||||
pub mod logger;
|
||||
|
||||
mod announcement;
|
||||
use std::fmt::{self, Debug};
|
||||
|
||||
pub use error::ModuleError;
|
||||
|
||||
pub use announcement::Announcement;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, ModuleError>;
|
||||
|
||||
///Generic error type for module-related operations.
|
||||
#[derive(Debug)]
|
||||
pub enum ModuleError {
|
||||
LibLoadingError(String),
|
||||
// LogError(log::SetLoggerError),
|
||||
LinkError(String),
|
||||
CryptError(String),
|
||||
Error(String),
|
||||
}
|
||||
|
||||
impl std::error::Error for ModuleError {
|
||||
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user