pub struct LiveQuery<R: View>(/* private fields */);Implementations§
Methods from Deref<Target = EntityLiveQuery>§
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<R: View> Signal for LiveQuery<R>
impl<R: View> Signal for LiveQuery<R>
Source§fn listen(&self, listener: Listener) -> ListenerGuard
fn listen(&self, listener: Listener) -> ListenerGuard
Listen to changes to this signal with a listener function
Source§fn broadcast_id(&self) -> BroadcastId
fn broadcast_id(&self) -> BroadcastId
Get the broadcast identifier for this signal.
Multiple signals may return the same broadcast_id if they share a broadcast.
The broadcast_id remains valid as a deduplication key as long as any ListenerGuard for that broadcast exists.
Auto Trait Implementations§
impl<R> Freeze for LiveQuery<R>
impl<R> !RefUnwindSafe for LiveQuery<R>
impl<R> Send for LiveQuery<R>where
R: Send,
impl<R> Sync for LiveQuery<R>where
R: Sync,
impl<R> Unpin for LiveQuery<R>where
R: Unpin,
impl<R> !UnwindSafe for LiveQuery<R>
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<S, T> DynSubscribe<T> for Swhere
T: 'static,
S: Subscribe<T>,
impl<S, T> DynSubscribe<T> for Swhere
T: 'static,
S: Subscribe<T>,
fn dyn_subscribe( &self, listener: Box<dyn Fn(T) + Sync + Send>, ) -> SubscriptionGuard
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