pub struct CoreError { /* private fields */ }Implementations§
Source§impl CoreError
impl CoreError
pub fn new(code: ErrorCode, message: impl Into<String>) -> Self
pub fn with_path(self, path: impl Into<PathBuf>) -> Self
Sourcepub fn with_read_only(self, kind: ReadOnlyKind) -> Self
pub fn with_read_only(self, kind: ReadOnlyKind) -> Self
Attaches the kind of a read_only_target error.
Sourcepub fn read_only(&self) -> Option<ReadOnlyKind>
pub fn read_only(&self) -> Option<ReadOnlyKind>
The kind of a read_only_target error.
pub fn code(&self) -> ErrorCode
pub fn message(&self) -> &str
pub fn path(&self) -> Option<&Path>
Trait Implementations§
impl Eq for CoreError
Source§impl Error for CoreError
impl Error for CoreError
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<&CoreError> for RecordedError
impl From<&CoreError> for RecordedError
impl StructuralPartialEq for CoreError
Auto Trait Implementations§
impl Forget for CoreError
impl Freeze for CoreError
impl Move for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreErrorwhere
RawVecInner: Send,
impl Sync for CoreErrorwhere
RawVecInner: Sync,
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreErrorwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.