pub struct Event {
pub ident: Ident,
pub data: EventData,
}Expand description
An event from a Watcher object.
An event contains both the a signifier of the watched object that triggered
the event, as well as any event-specific. See the EventData enum for info
on what event-specific data is returned for each event.
Fields§
§ident: IdentThe watched resource that triggered the event
data: EventDataAny event-specific data returned with the event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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