Skip to main content

QueryConn

Struct QueryConn 

Source
pub struct QueryConn<M: Model> { /* private fields */ }

Trait Implementations§

Source§

impl<M: Model> RowConn for QueryConn<M>

Source§

type Slot = ModelSlot<M>

Source§

type Ref = Elem<M>

Source§

fn refresh(&self) -> Vec<u64>

Refresh the snapshot and return the display rows as identity tokens. A tracked read: the enclosing watch re-runs exactly when something this read depends on changes; for a store source that is the collection’s shape (or the projection’s own reads), never the fields a row merely displays.
Source§

fn len(&self) -> usize

Row count of the current snapshot (no tracking).
Source§

fn token_at(&self, index: usize) -> u64

Identity token of row index in the current snapshot.
Source§

fn tokens_now(&self) -> Vec<u64>

The current tokens, no refresh and no tracking; the reorder/delete echo compares these.
Source§

fn slot_at(&self, index: usize) -> Option<ModelSlot<M>>

A fresh slot for row index (None on a stale mid-animation pull). Call inside the row’s scope: plain-data slots allocate their signals here.
Source§

fn rebind(&self, slot: &ModelSlot<M>, index: usize)

Point an existing slot at row index: the recycle write.
Source§

fn select_ref(&self, index: usize) -> Option<Elem<M>>

The selection currency for row index.
Source§

fn values_flow_by_reload(&self) -> bool

Whether row values reach existing rows only through reload→rebind. Plain-data rows say true (their slots hold copies); store rows say false (values flow through the store’s per-field notifications), which lets list skip the native reload entirely when the row set is unchanged.
Source§

fn take_row_events(&self) -> Option<Vec<RowDelta>>

What changed since the last refresh, if the source can say precisely: sequential row deltas a host can animate. None means unknown: the list reloads, which is always correct. Only sources that maintain their set incrementally (a live query) answer Some.
Source§

fn commit_move(&self, from: usize, to: usize)

Rotate the snapshot for a committed native move (display indices).
Source§

fn commit_delete(&self, index: usize)

Drop a row from the snapshot for a committed native delete.
Source§

fn is_empty(&self) -> bool

Auto Trait Implementations§

§

impl<M> !Freeze for QueryConn<M>

§

impl<M> !RefUnwindSafe for QueryConn<M>

§

impl<M> !Send for QueryConn<M>

§

impl<M> !Sync for QueryConn<M>

§

impl<M> !UnwindSafe for QueryConn<M>

§

impl<M> Forget for QueryConn<M>

§

impl<M> Move for QueryConn<M>

§

impl<M> Unpin for QueryConn<M>
where Query<M>: Unpin, Store<Keyed<M>>: Unpin,

§

impl<M> UnsafeUnpin for QueryConn<M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.