pub enum ProjectError {
Metadata {
source: Box<Error>,
},
PackageNotFound {
name: String,
},
MissingRepository,
UnknownBin {
package: String,
bin: String,
},
BinNotInWorkspace {
bin: String,
},
AmbiguousBin {
bin: String,
packages: Vec<String>,
},
NothingToPublish,
NotSingle {
count: usize,
},
InvalidField {
field: &'static str,
reason: &'static str,
},
Config(ConfigError),
}Expand description
Failures loading and resolving the target crate(s).
Variants§
Metadata
PackageNotFound
MissingRepository
UnknownBin
BinNotInWorkspace
AmbiguousBin
NothingToPublish
NotSingle
InvalidField
Config(ConfigError)
Trait Implementations§
Source§impl Debug for ProjectError
impl Debug for ProjectError
Source§impl Display for ProjectError
impl Display for ProjectError
Source§impl Error for ProjectError
impl Error for ProjectError
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 ProjectError
impl From<ConfigError> for ProjectError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ProjectError> for Error
impl From<ProjectError> for Error
Source§fn from(error: ProjectError) -> Self
fn from(error: ProjectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectError
impl !UnwindSafe for ProjectError
impl Freeze for ProjectError
impl Send for ProjectError
impl Sync for ProjectError
impl Unpin for ProjectError
impl UnsafeUnpin for ProjectError
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