#[non_exhaustive]pub enum RunScanError {
Startup(StartupError),
Runtime(Error),
}Expand description
Error returned by run_scan: either during setup (startup) or during the main loop (runtime).
Marked #[non_exhaustive] so adding new categories is not a breaking change.
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.
Startup(StartupError)
Failure during scan setup (config validation, resource init, status server bind).
Runtime(Error)
Failure during the scan loop or finalization.
Trait Implementations§
Source§impl Debug for RunScanError
impl Debug for RunScanError
Source§impl Display for RunScanError
impl Display for RunScanError
Source§impl Error for RunScanError
impl Error for RunScanError
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 RunScanError
impl From<Error> for RunScanError
Source§impl From<StartupError> for RunScanError
impl From<StartupError> for RunScanError
Source§fn from(source: StartupError) -> Self
fn from(source: StartupError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RunScanError
impl !UnwindSafe for RunScanError
impl Forget for RunScanError
impl Freeze for RunScanError
impl Move for RunScanError
impl Send for RunScanError
impl Sync for RunScanError
impl Unpin for RunScanError
impl UnsafeUnpin for RunScanError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<E> ErrorExt for E
impl<E> ErrorExt for E
Source§fn display_chain(&self) -> String
fn display_chain(&self) -> String
Returns a string representation of the entire error chain.
Source§fn display_chain_with_msg(&self, msg: &str) -> String
fn display_chain_with_msg(&self, msg: &str) -> String
Like
display_chain but with an extra message at the start.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 more