Enum PackageEntryValidationError
pub enum PackageEntryValidationError {
GetMetadataFailed(Error),
NotFound,
ExpectedSymlink,
ExpectedDirectory,
IncorrectSize(u64, u64),
IoError(Error),
HashMismatch(String, String),
}Expand description
An error that indicates that a specific file in a package archive directory seems to be corrupted.
Variants§
GetMetadataFailed(Error)
An error occurred while reading the metadata of the file.
NotFound
The file does not exist.
ExpectedSymlink
The file is not a symbolic link.
ExpectedDirectory
The file is not a directory.
IncorrectSize(u64, u64)
The size of the file does not match the expected size.
IoError(Error)
An IO error occurred while reading the file.
HashMismatch(String, String)
The SHA256 hash of the file does not match the expected hash.
Trait Implementations§
§impl Debug for PackageEntryValidationError
impl Debug for PackageEntryValidationError
§impl Display for PackageEntryValidationError
impl Display for PackageEntryValidationError
§impl Error for PackageEntryValidationError
impl Error for PackageEntryValidationError
§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<Error> for PackageEntryValidationError
impl From<Error> for PackageEntryValidationError
§fn from(source: Error) -> PackageEntryValidationError
fn from(source: Error) -> PackageEntryValidationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackageEntryValidationError
impl !RefUnwindSafe for PackageEntryValidationError
impl Send for PackageEntryValidationError
impl Sync for PackageEntryValidationError
impl Unpin for PackageEntryValidationError
impl !UnwindSafe for PackageEntryValidationError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.