pub enum ReplaceFileError {
NotReplaced(Error),
StateUnknown(Error),
}Expand description
Failure classification for an attempted atomic replacement.
Variants§
NotReplaced(Error)
The operating system rejected the operation and the open source handle plus both named identities were verified unchanged.
StateUnknown(Error)
The operating system reported failure after it may have moved or modified one of the named files. The caller must reconcile from authoritative persisted state.
Trait Implementations§
Source§impl Debug for ReplaceFileError
impl Debug for ReplaceFileError
Source§impl Display for ReplaceFileError
impl Display for ReplaceFileError
Source§impl Error for ReplaceFileError
impl Error for ReplaceFileError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ReplaceFileError
impl !UnwindSafe for ReplaceFileError
impl Freeze for ReplaceFileError
impl Send for ReplaceFileError
impl Sync for ReplaceFileError
impl Unpin for ReplaceFileError
impl UnsafeUnpin for ReplaceFileError
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