#[non_exhaustive]pub enum WriteError {
Show 21 variants
InvalidLabel(String),
UnsafePath(PathBuf),
NonAsciiPath(PathBuf),
OwnedByOther {
path: PathBuf,
manifest: PathBuf,
},
Unowned(PathBuf),
ReservedPath(PathBuf),
NotADirectory(PathBuf),
IsADirectory(PathBuf),
BadLock(PathBuf),
OutputDirSymlink(PathBuf),
OutputDirNotADirectory(PathBuf),
OutputDirOwned {
manifest: PathBuf,
},
DirectorySpelling {
planned: PathBuf,
stored: PathBuf,
},
Symlink(PathBuf),
Locked(PathBuf),
ConflictingPaths(PathBuf, PathBuf),
SourceMismatch {
label: String,
previous: String,
current: String,
},
HasErrors(usize),
Manifest {
path: PathBuf,
reason: String,
},
SharedGoPackage {
manifest: PathBuf,
},
Io {
path: PathBuf,
source: Error,
},
}Expand description
Why the output directory could not be written or checked.
Paths of generated files and directories are relative to the output
directory: in UnsafePath, NonAsciiPath, ConflictingPaths,
ReservedPath, Unowned, OwnedByOther, IsADirectory,
DirectorySpelling, and Symlink/NotADirectory. A manifest in
OwnedByOther or OutputDirOwned is relative to it too when it sits
below it, and named as found when it sits above. The rest name the path
as opened.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidLabel(String)
UnsafePath(PathBuf)
NonAsciiPath(PathBuf)
OwnedByOther
Unowned(PathBuf)
ReservedPath(PathBuf)
NotADirectory(PathBuf)
IsADirectory(PathBuf)
BadLock(PathBuf)
OutputDirSymlink(PathBuf)
OutputDirNotADirectory(PathBuf)
OutputDirOwned
DirectorySpelling
Symlink(PathBuf)
Locked(PathBuf)
ConflictingPaths(PathBuf, PathBuf)
SourceMismatch
HasErrors(usize)
Manifest
Io
Trait Implementations§
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
Source§impl Error for WriteError
impl Error for WriteError
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 WriteError
impl !UnwindSafe for WriteError
impl Forget for WriteError
impl Freeze for WriteError
impl Move for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnsafeUnpin for WriteErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more