pub struct LiveCapabilitySubscription<T> {
pub initial_results: Vec<T>,
/* private fields */
}Expand description
A capability-scoped subscription to a live query that streams updates for records within a specific capability.
Similar to LiveQuerySubscription, but only receives updates for records within the specified capability.
This provides more granular control over subscription scope.
Fields§
§initial_results: Vec<T>Implementations§
Source§impl<T> LiveCapabilitySubscription<T>
impl<T> LiveCapabilitySubscription<T>
pub fn set_predicate<F>(&mut self, predicate: F)
Sourcepub async fn next(&mut self) -> Option<Vec<T>>
pub async fn next(&mut self) -> Option<Vec<T>>
Waits for the next change event within this capability and returns the updated query results.
Similar to LiveQuerySubscription::next(), but only responds to changes within the
scoped capability.
pub fn initial_results(&self) -> &[T]
Auto Trait Implementations§
impl<T> Freeze for LiveCapabilitySubscription<T>
impl<T> RefUnwindSafe for LiveCapabilitySubscription<T>
impl<T> Send for LiveCapabilitySubscription<T>
impl<T> Sync for LiveCapabilitySubscription<T>
impl<T> Unpin for LiveCapabilitySubscription<T>
impl<T> UnsafeUnpin for LiveCapabilitySubscription<T>
impl<T> UnwindSafe for LiveCapabilitySubscription<T>
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