pub(crate) enum SymbolParseOutcome {
Parsed(SymbolParseSuccess),
BinaryOrNonUtf8 {
path: String,
},
SourceChanged {
path: String,
},
Io {
path: PathBuf,
source: Error,
},
IndexWork(IndexWorkFailure),
}Expand description
Outcome from one parser worker.
Variants§
Parsed(SymbolParseSuccess)
Source parsed successfully.
BinaryOrNonUtf8
File was skipped because it was not UTF-8 source text.
SourceChanged
Source bytes changed after the staged filesystem scan.
Io
Source read failed.
IndexWork(IndexWorkFailure)
Cooperative parsing work was canceled or reached its deadline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymbolParseOutcome
impl !RefUnwindSafe for SymbolParseOutcome
impl Send for SymbolParseOutcome
impl Sync for SymbolParseOutcome
impl Unpin for SymbolParseOutcome
impl !UnwindSafe for SymbolParseOutcome
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 more