#[non_exhaustive]pub struct LinkNotCreated {
pub link: PathBuf,
pub target: PathBuf,
pub resolved: PathBuf,
pub reason: String,
}Expand description
A required symlink that the destination could not create. Carried inside
AppRootError::Io; read it with AppRootError::link_not_created.
Retryable: it is returned before the completion marker is written, so the destination is not treated as migrated, the old tree is untouched and still usable, and a later call (after the privilege is granted) resumes and completes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.link: PathBufPath of the link relative to the migrated tree.
target: PathBufThe link’s target text in the old tree.
resolved: PathBufThe target that would have been written (absolute for a rewritten external link).
reason: StringThe operating system’s reason.
Trait Implementations§
Source§impl Clone for LinkNotCreated
impl Clone for LinkNotCreated
Source§impl Debug for LinkNotCreated
impl Debug for LinkNotCreated
Source§impl Display for LinkNotCreated
impl Display for LinkNotCreated
impl Eq for LinkNotCreated
Source§impl Error for LinkNotCreated
impl Error for LinkNotCreated
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 PartialEq for LinkNotCreated
impl PartialEq for LinkNotCreated
impl StructuralPartialEq for LinkNotCreated
Auto Trait Implementations§
impl Freeze for LinkNotCreated
impl RefUnwindSafe for LinkNotCreated
impl Send for LinkNotCreated
impl Sync for LinkNotCreated
impl Unpin for LinkNotCreated
impl UnsafeUnpin for LinkNotCreated
impl UnwindSafe for LinkNotCreated
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