pub struct EntityLiveQuery(/* private fields */);Expand description
A local subscription that handles both reactor subscription and remote cleanup This is a type-erased version that can be used in the TContext trait
Implementations§
Source§impl EntityLiveQuery
impl EntityLiveQuery
pub fn new<SE, PA>( node: &Node<SE, PA>, collection_id: CollectionId, args: MatchArgs, cdata: PA::ContextData, ) -> Result<Self, RetrievalError>
pub fn map<R: View>(self) -> LiveQuery<R>
Sourcepub async fn wait_initialized(&self)
pub async fn wait_initialized(&self)
Wait for the LiveQuery to be fully initialized with initial states
pub fn update_selection( &self, new_selection: impl TryInto<Selection, Error = impl Into<RetrievalError>>, ) -> Result<(), RetrievalError>
pub async fn update_selection_wait( &self, new_selection: impl TryInto<Selection, Error = impl Into<RetrievalError>>, ) -> Result<(), RetrievalError>
pub fn error(&self) -> Option<RetrievalError>
pub fn query_id(&self) -> QueryId
Sourcepub fn weak(&self) -> WeakEntityLiveQuery
pub fn weak(&self) -> WeakEntityLiveQuery
Create a weak reference to this LiveQuery
Sourcepub fn mark_initialized(&self, version: u32)
pub fn mark_initialized(&self, version: u32)
Mark initialization as complete for a given version
Trait Implementations§
Source§impl Clone for EntityLiveQuery
impl Clone for EntityLiveQuery
Source§fn clone(&self) -> EntityLiveQuery
fn clone(&self) -> EntityLiveQuery
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 moreSource§impl PreNotifyHook for &EntityLiveQuery
impl PreNotifyHook for &EntityLiveQuery
fn pre_notify(&self, version: u32)
Auto Trait Implementations§
impl Freeze for EntityLiveQuery
impl !RefUnwindSafe for EntityLiveQuery
impl Send for EntityLiveQuery
impl Sync for EntityLiveQuery
impl Unpin for EntityLiveQuery
impl !UnwindSafe for EntityLiveQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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