pub enum ArtifactError {
Io(Error),
NotRegularFile,
LimitExceeded {
limit: u64,
},
DigestMismatch {
expected: Sha256Digest,
actual: ArtifactIdentity,
},
Allocation(TryReserveError),
}Expand description
A bounded read or digest verification failed.
Variants§
Io(Error)
The reader or filesystem failed. No partial identity is returned.
NotRegularFile
The selected path is not a regular file.
LimitExceeded
A stream exceeded the caller’s byte allowance.
DigestMismatch
The complete bounded stream does not match the admitted digest.
Fields
§
expected: Sha256DigestCaller-selected authority.
§
actual: ArtifactIdentityObserved size and digest.
Allocation(TryReserveError)
Storage could not be allocated for a bounded file read.
Trait Implementations§
Source§impl Debug for ArtifactError
impl Debug for ArtifactError
Source§impl Display for ArtifactError
impl Display for ArtifactError
Source§impl Error for ArtifactError
impl Error for ArtifactError
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<ArtifactError> for ChunkDigestError
impl From<ArtifactError> for ChunkDigestError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl From<ArtifactError> for CopyError
impl From<ArtifactError> for CopyError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl From<ArtifactError> for Error
Preserve native I/O identity or retain the typed artifact cause at an I/O boundary.
impl From<ArtifactError> for Error
Preserve native I/O identity or retain the typed artifact cause at an I/O boundary.
Source§fn from(error: ArtifactError) -> Self
fn from(error: ArtifactError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ArtifactError
impl !UnwindSafe for ArtifactError
impl Freeze for ArtifactError
impl Send for ArtifactError
impl Sync for ArtifactError
impl Unpin for ArtifactError
impl UnsafeUnpin for ArtifactError
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