#[non_exhaustive]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). The client builds
it. Callers only read the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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