pub enum EditorError {
StateError(String),
StorageError(String),
EventError(String),
PluginError(String),
IoError(Error),
ConfigError(String),
TransactionError(String),
HistoryError(String),
EngineError(String),
CacheError(String),
Unknown(String),
}
Expand description
编辑器核心错误类型
Variants§
StateError(String)
状态相关错误
StorageError(String)
存储相关错误
EventError(String)
事件处理错误
PluginError(String)
插件相关错误
IoError(Error)
IO操作错误
ConfigError(String)
配置错误
TransactionError(String)
事务处理错误
HistoryError(String)
历史记录错误
EngineError(String)
引擎错误
CacheError(String)
缓存错误
Unknown(String)
未知错误
Trait Implementations§
Source§impl Debug for EditorError
impl Debug for EditorError
Source§impl Display for EditorError
impl Display for EditorError
Source§impl Error for EditorError
impl Error for EditorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&str> for EditorError
impl From<&str> for EditorError
Source§impl From<Error> for EditorError
impl From<Error> for EditorError
Auto Trait Implementations§
impl Freeze for EditorError
impl !RefUnwindSafe for EditorError
impl Send for EditorError
impl Sync for EditorError
impl Unpin for EditorError
impl !UnwindSafe for EditorError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more