Enum PackFinderError
#[non_exhaustive]pub enum PackFinderError {
Text(TextFormError),
InvalidPath,
MissingPackage,
InvalidMetadata,
Duplicate,
}Expand description
A registration that the repository could not accept. No partial pack is added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(TextFormError)
The title failed component conversion; no pack was added.
InvalidPath
The requested directory is outside the package’s logical root.
MissingPackage
No loaded package matches the location’s namespace, or it cannot be opened.
InvalidMetadata
The directory does not contain readable pack metadata.
Duplicate
Another source already supplied the same repository id.
Trait Implementations§
§impl Clone for PackFinderError
impl Clone for PackFinderError
§fn clone(&self) -> PackFinderError
fn clone(&self) -> PackFinderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PackFinderError
impl Debug for PackFinderError
§impl Display for PackFinderError
impl Display for PackFinderError
impl Eq for PackFinderError
§impl Error for PackFinderError
impl Error for PackFinderError
1.30.0 · 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()
§impl From<TextFormError> for PackFinderError
impl From<TextFormError> for PackFinderError
§fn from(error: TextFormError) -> PackFinderError
fn from(error: TextFormError) -> PackFinderError
Converts to this type from the input type.
§impl PartialEq for PackFinderError
impl PartialEq for PackFinderError
impl StructuralPartialEq for PackFinderError
Auto Trait Implementations§
impl Freeze for PackFinderError
impl RefUnwindSafe for PackFinderError
impl Send for PackFinderError
impl Sync for PackFinderError
impl Unpin for PackFinderError
impl UnsafeUnpin for PackFinderError
impl UnwindSafe for PackFinderError
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