#[non_exhaustive]pub enum WatchEventKind {
Created,
Modified,
Removed,
Renamed,
Moved,
Overflow,
}Expand description
Kind of change reported by a provider watch stream.
The enum is non-exhaustive so downstream matches need a wildcard arm.
§Examples
use ailloli_ui_fs::WatchEventKind;
assert_ne!(WatchEventKind::Created, WatchEventKind::Removed);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.
Created
A new entry appeared at the event URI.
Modified
Content or metadata changed at the event URI.
Removed
The entry at the event URI disappeared.
Renamed
An entry changed name, normally within one directory.
Moved
An entry changed parent or provider location.
Overflow
The provider lost one or more events; consumers must invalidate/reload.
Trait Implementations§
Source§impl Clone for WatchEventKind
impl Clone for WatchEventKind
Source§fn clone(&self) -> WatchEventKind
fn clone(&self) -> WatchEventKind
Returns a copy of the value. Read more
1.0.0 · 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 WatchEventKind
impl Debug for WatchEventKind
Source§impl<'de> Deserialize<'de> for WatchEventKind
impl<'de> Deserialize<'de> for WatchEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WatchEventKind
impl PartialEq for WatchEventKind
Source§impl Serialize for WatchEventKind
impl Serialize for WatchEventKind
impl Copy for WatchEventKind
impl Eq for WatchEventKind
impl StructuralPartialEq for WatchEventKind
Auto Trait Implementations§
impl Freeze for WatchEventKind
impl RefUnwindSafe for WatchEventKind
impl Send for WatchEventKind
impl Sync for WatchEventKind
impl Unpin for WatchEventKind
impl UnwindSafe for WatchEventKind
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