pub enum Error {
}Expand description
Unified error type for all MAI operations.
Variants§
PackNotFound(String)
ToolNotFound(String)
VersionConflict(String)
Io(Error)
Parse(String)
Registry(String)
Project(String)
LockFile(String)
Network(String)
Toml(Error)
TomlSerialize(Error)
Version(String)
Config(String)
Path(PathBuf)
Implementations§
Source§impl Error
impl Error
pub fn pack_not_found(pack: impl Into<String>) -> Self
pub fn tool_not_found(tool: impl Into<String>) -> Self
pub fn version_conflict(msg: impl Into<String>) -> Self
pub fn registry_error(msg: impl Into<String>) -> Self
pub fn project_error(msg: impl Into<String>) -> Self
pub fn lock_file_error(msg: impl Into<String>) -> Self
pub fn network_error(msg: impl Into<String>) -> Self
pub fn parse_error(msg: impl Into<String>) -> Self
pub fn version_error(msg: impl Into<String>) -> Self
pub fn config_error(msg: impl Into<String>) -> Self
pub fn path_error(path: PathBuf) -> Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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