pub enum AssemblyError {
Io(Error),
Http(HttpError),
Matcher(MatchError),
Control(String),
ChecksumMismatch {
expected: String,
actual: String,
},
NoUrls,
Aborted,
}Expand description
Why a step of an assembly failed.
Variants§
Io(Error)
Reading a source file, or writing, truncating or renaming the temporary file, failed.
Http(HttpError)
Fetching the control file or a block range failed.
Matcher(MatchError)
The block matcher failed.
Control(String)
The assembly cannot do what was asked of it, such as completing while blocks are still missing.
ChecksumMismatch
The assembled file’s SHA-1 differs from the control file’s.
Fields
NoUrls
The control file lists no URL to download blocks from.
Aborted
The abort flag was raised during a scan or a download.
Trait Implementations§
Source§impl Debug for AssemblyError
impl Debug for AssemblyError
Source§impl Display for AssemblyError
impl Display for AssemblyError
Source§impl Error for AssemblyError
impl Error for AssemblyError
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<Error> for AssemblyError
impl From<Error> for AssemblyError
Source§impl From<HttpError> for AssemblyError
impl From<HttpError> for AssemblyError
Source§impl From<MatchError> for AssemblyError
impl From<MatchError> for AssemblyError
Source§fn from(source: MatchError) -> Self
fn from(source: MatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AssemblyError
impl !UnwindSafe for AssemblyError
impl Freeze for AssemblyError
impl Send for AssemblyError
impl Sync for AssemblyError
impl Unpin for AssemblyError
impl UnsafeUnpin for AssemblyError
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