pub enum BottleError {
AlreadyExists {
path: PathBuf,
},
NotRegistered,
NotABottle(PathBuf),
NotConfirmed,
LibsystemNotFound(PathBuf),
Io(Error),
}Expand description
Bottle management errors.
Variants§
AlreadyExists
A bottle is already registered (create refused).
NotRegistered
Destroy requested but no bottle is registered.
NotABottle(PathBuf)
Registry points at a path that is not a valid bottle.
NotConfirmed
Destroy refused because confirmation was not given.
LibsystemNotFound(PathBuf)
--libsystem / env pointed at a path that is not a readable file.
Io(Error)
Underlying I/O failure.
Trait Implementations§
Source§impl Debug for BottleError
impl Debug for BottleError
Source§impl Display for BottleError
impl Display for BottleError
Source§impl Error for BottleError
impl Error for BottleError
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 BottleError
impl !UnwindSafe for BottleError
impl Freeze for BottleError
impl Send for BottleError
impl Sync for BottleError
impl Unpin for BottleError
impl UnsafeUnpin for BottleError
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