pub enum GenerationError {
Naming(NamingError),
InvalidDisplayName {
message: String,
},
Config(ConfigError),
ParentDirectory {
path: Utf8PathBuf,
source: Error,
},
Inspect {
path: Utf8PathBuf,
source: Error,
},
DestinationExists(Utf8PathBuf),
TemporaryDirectory {
path: Utf8PathBuf,
source: Error,
},
NonUtf8Path(PathBuf),
UnsafeTemplatePath(Utf8PathBuf),
Write {
path: Utf8PathBuf,
source: Error,
},
Commit {
staging: Utf8PathBuf,
destination: Utf8PathBuf,
source: Error,
},
}Expand description
Project generation failure with its exact filesystem stage.
Variants§
Naming(NamingError)
Invalid project or application identifier.
InvalidDisplayName
An explicit user-facing application name was empty or unsafe for platform metadata.
Config(ConfigError)
Invalid generated configuration.
ParentDirectory
Parent directory was missing or inaccessible.
Inspect
Destination inspection failed.
DestinationExists(Utf8PathBuf)
Refuse to overwrite any existing destination.
TemporaryDirectory
Staging directory creation failed.
NonUtf8Path(PathBuf)
OS path could not be represented safely in CLI/config output.
UnsafeTemplatePath(Utf8PathBuf)
A built-in template attempted to escape the staging directory.
Write
A directory or file could not be created.
Commit
All files were written but the atomic rename failed.
Fields
§
staging: Utf8PathBufRecoverable staging directory.
§
destination: Utf8PathBufRequested final directory.
Trait Implementations§
Source§impl Debug for GenerationError
impl Debug for GenerationError
Source§impl Display for GenerationError
impl Display for GenerationError
Source§impl Error for GenerationError
impl Error for GenerationError
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<ConfigError> for GenerationError
impl From<ConfigError> for GenerationError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<NamingError> for GenerationError
impl From<NamingError> for GenerationError
Source§fn from(source: NamingError) -> Self
fn from(source: NamingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GenerationError
impl !UnwindSafe for GenerationError
impl Freeze for GenerationError
impl Send for GenerationError
impl Sync for GenerationError
impl Unpin for GenerationError
impl UnsafeUnpin for GenerationError
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