pub enum DirectoryEvent {
Existing(DirectoryEntry),
InitialScanComplete,
Created(DirectoryEntry),
Modified(DirectoryEntry),
Removed {
path: String,
},
Renamed {
from: String,
to: String,
},
RescanRequired,
}Variants§
Existing(DirectoryEntry)
InitialScanComplete
Created(DirectoryEntry)
Modified(DirectoryEntry)
Removed
Renamed
RescanRequired
Trait Implementations§
Source§impl Clone for DirectoryEvent
impl Clone for DirectoryEvent
Source§fn clone(&self) -> DirectoryEvent
fn clone(&self) -> DirectoryEvent
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 DirectoryEvent
impl Debug for DirectoryEvent
Source§impl Described for DirectoryEvent
impl Described for DirectoryEvent
impl Eq for DirectoryEvent
Source§impl MemorySize for DirectoryEvent
impl MemorySize for DirectoryEvent
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl PartialEq for DirectoryEvent
impl PartialEq for DirectoryEvent
impl StructuralPartialEq for DirectoryEvent
Source§impl Value for DirectoryEvent
impl Value for DirectoryEvent
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn read(input: &mut Reader<'_>) -> Result<DirectoryEvent, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for DirectoryEvent
impl RefUnwindSafe for DirectoryEvent
impl Send for DirectoryEvent
impl Sync for DirectoryEvent
impl Unpin for DirectoryEvent
impl UnsafeUnpin for DirectoryEvent
impl UnwindSafe for DirectoryEvent
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