pub enum ScanFailure {
Request(ScanError),
Engine(Error),
}Expand description
The shared request layer, re-exported so that rf_cli::ScanRequest and
rf_api::ScanRequest stay one type and every existing use rf_cli::…
keeps compiling. The definitions live in rf-api.
How scan_bytes_cancellable failed.
Two halves, because a front end reports them differently: a
ScanError is the caller’s fault (a bad --range, an unsupported
container) and an rf_scan::Error happened to a scan that had already
started — cancelled, or over budget.
Variants§
Request(ScanError)
The request could not be turned into a scan.
Engine(Error)
The engine stopped: cancelled, over budget, or a decode failure.
Trait Implementations§
Source§impl Debug for ScanFailure
impl Debug for ScanFailure
Source§impl Display for ScanFailure
impl Display for ScanFailure
Source§impl Error for ScanFailure
impl Error for ScanFailure
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()
Source§impl From<ScanError> for ScanFailure
impl From<ScanError> for ScanFailure
Source§fn from(e: ScanError) -> ScanFailure
fn from(e: ScanError) -> ScanFailure
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScanFailure
impl RefUnwindSafe for ScanFailure
impl Send for ScanFailure
impl Sync for ScanFailure
impl Unpin for ScanFailure
impl UnsafeUnpin for ScanFailure
impl UnwindSafe for ScanFailure
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
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 more