pub enum ServiceError {
Db(DbError),
InvalidInput(String),
Io {
path: PathBuf,
source: Error,
},
Serialize(Error),
SelectedProjectUnavailable,
SelectedProjectChanged,
SearchCapabilityUnavailable {
requested_mode: SearchRetrievalMode,
state: &'static str,
guidance: &'static str,
},
RelationCursorInvalid {
reason: &'static str,
},
RelationCursorMismatched {
field: &'static str,
},
RelationCursorStale {
field: &'static str,
},
}Expand description
Service-layer failures.
Variants§
Db(DbError)
Database operation failed.
InvalidInput(String)
User input or stored metadata was invalid.
Io
Filesystem operation failed.
Serialize(Error)
Serialization failed while building a telemetry baseline.
The selected database has no complete project binding.
SelectedProjectChanged
The selected project binding changed while the report was being read.
An explicitly requested optional search capability has no ready generation.
RelationCursorInvalid
A detailed-relation cursor is malformed or violates its bounded state invariants.
RelationCursorMismatched
A detailed-relation cursor belongs to another normalized request.
RelationCursorStale
A detailed-relation cursor belongs to stale repository or purpose state.
Trait Implementations§
Source§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
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<DbError> for ServiceError
impl From<DbError> for ServiceError
Auto Trait Implementations§
impl Freeze for ServiceError
impl !RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl !UnwindSafe for ServiceError
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