Enum ys_core::YsErrorKind
source · pub enum YsErrorKind {
IO {
error: Error,
path: Option<PathBuf>,
},
Serde {
error: Error,
},
MissingObject {
id: ObjectID,
},
}
Expand description
YsErrorKind 定义了可能发生的错误类型。
Variants§
Trait Implementations§
source§impl Debug for YsErrorKind
impl Debug for YsErrorKind
source§impl Display for YsErrorKind
impl Display for YsErrorKind
source§impl From<YsErrorKind> for YsError
impl From<YsErrorKind> for YsError
source§fn from(error: YsErrorKind) -> Self
fn from(error: YsErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YsErrorKind
impl !RefUnwindSafe for YsErrorKind
impl Send for YsErrorKind
impl Sync for YsErrorKind
impl Unpin for YsErrorKind
impl !UnwindSafe for YsErrorKind
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