pub enum Watched {
Remove(Utf8PathBuf),
Rename(Utf8PathBuf, Utf8PathBuf),
Write(Utf8PathBuf),
Create(Utf8PathBuf),
Rescan,
}Variants§
Implementations§
source§impl Watched
impl Watched
pub fn path_ext(&self) -> Option<&str>
pub fn path(&self) -> Option<&Utf8PathBuf>
pub fn path_starts_with(&self, path: &Utf8PathBuf) -> bool
pub fn path_starts_with_any(&self, paths: &[&Utf8PathBuf]) -> bool
Trait Implementations§
source§impl PartialEq for Watched
impl PartialEq for Watched
impl Eq for Watched
impl StructuralEq for Watched
impl StructuralPartialEq for Watched
Auto Trait Implementations§
impl RefUnwindSafe for Watched
impl Send for Watched
impl Sync for Watched
impl Unpin for Watched
impl UnwindSafe for Watched
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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<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.