pub enum DriftError {
ContentHashMismatch {
stored: ContentHash,
computed: ContentHash,
},
NoteMdMissing {
note_id: NoteId,
},
OrphanMd(String),
}Expand description
Erreur de détection de drift entre Markdown et index SQLite.
Produite par Note::verify_integrity() et par le drift detector (gradatum-vault).
Déclenche un re-parse + re-index + re-embed du fichier concerné.
Variants§
ContentHashMismatch
Le ContentHash recomputed diffère du hash stocké en SQLite.
Cause probable : édition manuelle du fichier Markdown hors de Gradatum. Action : re-parse + re-index par le worker.
Fields
§
stored: ContentHashHash stocké dans SQLite à la dernière écriture connue.
§
computed: ContentHashHash recomputed depuis le fichier Markdown actuel.
NoteMdMissing
Fichier Markdown absent sur disque pour une note indexée.
OrphanMd(String)
Fichier Markdown orphelin (pas de note correspondante dans l’index).
Trait Implementations§
Source§impl Clone for DriftError
impl Clone for DriftError
Source§fn clone(&self) -> DriftError
fn clone(&self) -> DriftError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DriftError
impl Debug for DriftError
Source§impl Display for DriftError
impl Display for DriftError
Source§impl Error for DriftError
impl Error for DriftError
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<DriftError> for GradatumError
impl From<DriftError> for GradatumError
Source§fn from(source: DriftError) -> Self
fn from(source: DriftError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DriftError
impl PartialEq for DriftError
Source§fn eq(&self, other: &DriftError) -> bool
fn eq(&self, other: &DriftError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DriftError
Auto Trait Implementations§
impl Freeze for DriftError
impl RefUnwindSafe for DriftError
impl Send for DriftError
impl Sync for DriftError
impl Unpin for DriftError
impl UnsafeUnpin for DriftError
impl UnwindSafe for DriftError
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