#[non_exhaustive]pub enum Reload {
Unchanged,
Reloaded,
Failed(Vec<ContentError>),
}Expand description
What a Hot::refresh did.
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.
Unchanged
None of its files changed.
Reloaded
A file changed, and the value is the new decode’s.
Failed(Vec<ContentError>)
A file changed and the new decode failed: every problem, with its file and line. The value is still the old one.
Trait Implementations§
impl Eq for Reload
impl StructuralPartialEq for Reload
Auto Trait Implementations§
impl Freeze for Reload
impl RefUnwindSafe for Reload
impl Send for Reload
impl Sync for Reload
impl Unpin for Reload
impl UnsafeUnpin for Reload
impl UnwindSafe for Reload
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