pub struct ConnectionWork {
pub commits: usize,
pub cookie_reads: usize,
pub app_read_steps: usize,
pub app_read_statements: usize,
pub app_write_steps: usize,
pub lookup_steps: usize,
pub judged_queries: usize,
pub stopped_questions: usize,
}Expand description
The work a connection counts: its commits, its reads of the schema cookie, and the steps of the statements it runs for the app and for live queries’ lookups.
Fields§
§commits: usizeSuccessful durable transaction commits, unchanged transactions’ included.
Reads of SQLite’s schema cookie.
app_read_steps: usizeSQLite virtual machine steps the app’s statements that return rows ran.
app_read_statements: usizeThe app’s statements that return rows, one per run.
app_write_steps: usizeSQLite virtual machine steps the app’s statements that write ran, triggers’ included.
lookup_steps: usizeSteps of the lookups judging whether a write changed rows a live query joins.
judged_queries: usizeLive queries that a write judged its changes against, one for each write that judged each: those it could affect.
stopped_questions: usizeQuestions about a changed row that ran past LOOKUP_STEPS and
stopped, each of which reran a live query.
Trait Implementations§
Source§impl Clone for ConnectionWork
impl Clone for ConnectionWork
impl Copy for ConnectionWork
Source§impl Debug for ConnectionWork
impl Debug for ConnectionWork
Source§impl Default for ConnectionWork
impl Default for ConnectionWork
impl Eq for ConnectionWork
Source§impl PartialEq for ConnectionWork
impl PartialEq for ConnectionWork
impl StructuralPartialEq for ConnectionWork
Auto Trait Implementations§
impl Freeze for ConnectionWork
impl RefUnwindSafe for ConnectionWork
impl Send for ConnectionWork
impl Sync for ConnectionWork
impl Unpin for ConnectionWork
impl UnsafeUnpin for ConnectionWork
impl UnwindSafe for ConnectionWork
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.