pub(crate) enum PinError {
MissingKey {
unit: String,
dependency: String,
path: PathBuf,
},
Document {
unit: String,
dependency: String,
source: Box<DocumentTargetError>,
},
NotUtf8(NotUtf8),
File(RequiredFileError),
Path(PathError),
Edit(EditError),
DigestEmpty {
unit: String,
dependency: String,
artifact: String,
},
Asset(AssetError),
}Expand description
A pin cannot be read or rewritten.
Variants§
MissingKey
The pin key is absent from the file.
Fields
Document
The pin file is not a document that can take the version.
Fields
§
source: Box<DocumentTargetError>The failure.
NotUtf8(NotUtf8)
The pin file is not UTF-8 text.
File(RequiredFileError)
The pin file cannot be read.
Path(PathError)
A configured path is unsafe or outside the repository.
Edit(EditError)
The planned edits conflict or are stale.
DigestEmpty
A digest pin holds no digest and its dependency is not released.
Fields
Asset(AssetError)
The dependency asset cannot be built or read.
Trait Implementations§
Source§impl Error for PinError
impl Error for PinError
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<AssetError> for PinError
impl From<AssetError> for PinError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<PinError> for ResolveError
impl From<PinError> for ResolveError
Source§impl From<PinError> for PublicationError
impl From<PinError> for PublicationError
Source§impl From<RequiredFileError> for PinError
impl From<RequiredFileError> for PinError
Source§fn from(source: RequiredFileError) -> Self
fn from(source: RequiredFileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PinError
impl !UnwindSafe for PinError
impl Freeze for PinError
impl Send for PinError
impl Sync for PinError
impl Unpin for PinError
impl UnsafeUnpin for PinError
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