pub struct Event {
pub kind: EventKind,
pub sequence: u64,
pub ref_id: u64,
pub path: String,
pub old_path: String,
pub change: Option<ChangeKind>,
pub error: Option<Error>,
pub time: SystemTime,
}Expand description
One event from the server, or a local one (Overflow, ConnectionLost).
Fields§
§kind: EventKind§sequence: u64Server sequence number. 0 for local events.
ref_id: u64§path: String§old_path: String§change: Option<ChangeKind>Set for Change.
error: Option<Error>Error::Server for WarmFailed, an Error::Io for ConnectionLost.
time: SystemTimeWhen the client received the event.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
impl Freeze for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin 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