pub enum ReloadOutcome {
Unchanged,
LoadedFirst {
tokens: usize,
},
Reloaded {
old_tokens: usize,
new_tokens: usize,
},
Removed,
}Expand description
Outcome of a refresh() call. Used to decide whether to emit a
status line so the user knows their context shifted.
Variants§
Unchanged
File still has the same mtime (or was/still is absent).
LoadedFirst
File was loaded for the first time this session — handles “user created MERMAID.md mid-session” gracefully.
Reloaded
File content changed since the last read.
Removed
File was previously loaded but has been deleted from disk.
Trait Implementations§
Source§impl Debug for ReloadOutcome
impl Debug for ReloadOutcome
impl Eq for ReloadOutcome
Source§impl PartialEq for ReloadOutcome
impl PartialEq for ReloadOutcome
Source§fn eq(&self, other: &ReloadOutcome) -> bool
fn eq(&self, other: &ReloadOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReloadOutcome
Auto Trait Implementations§
impl Freeze for ReloadOutcome
impl RefUnwindSafe for ReloadOutcome
impl Send for ReloadOutcome
impl Sync for ReloadOutcome
impl Unpin for ReloadOutcome
impl UnsafeUnpin for ReloadOutcome
impl UnwindSafe for ReloadOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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