pub enum ChangesEvent {
Change(ChangeEvent),
Complete {
last_seq: Seq,
},
Error(String),
Paused,
Active,
}Expand description
Lifecycle events emitted by a live changes stream.
Mirrors PouchDB’s changes event model: change, complete, error,
paused, and active.
Variants§
Change(ChangeEvent)
A document changed.
Complete
The stream completed (limit reached or non-live mode ended).
Error(String)
An error occurred while fetching changes.
Paused
The stream is caught up and waiting for new changes.
Active
The stream resumed fetching after being paused.
Trait Implementations§
Source§impl Clone for ChangesEvent
impl Clone for ChangesEvent
Source§fn clone(&self) -> ChangesEvent
fn clone(&self) -> ChangesEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChangesEvent
impl RefUnwindSafe for ChangesEvent
impl Send for ChangesEvent
impl Sync for ChangesEvent
impl Unpin for ChangesEvent
impl UnwindSafe for ChangesEvent
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