pub struct LiveRowsSubscription { /* private fields */ }Expand description
High-level subscription that yields materialized live-query row snapshots.
Implementations§
Source§impl LiveRowsSubscription
impl LiveRowsSubscription
Sourcepub async fn next(&mut self) -> Option<Result<LiveRowsEvent, KalamLinkError>>
pub async fn next(&mut self) -> Option<Result<LiveRowsEvent, KalamLinkError>>
Receive the next materialized live-query event.
Sourcepub async fn close(&mut self) -> Result<(), KalamLinkError>
pub async fn close(&mut self) -> Result<(), KalamLinkError>
Close the underlying subscription.
Sourcepub fn subscription_id(&self) -> &str
pub fn subscription_id(&self) -> &str
Get the server-assigned subscription ID.
Auto Trait Implementations§
impl Freeze for LiveRowsSubscription
impl RefUnwindSafe for LiveRowsSubscription
impl Send for LiveRowsSubscription
impl Sync for LiveRowsSubscription
impl Unpin for LiveRowsSubscription
impl UnsafeUnpin for LiveRowsSubscription
impl UnwindSafe for LiveRowsSubscription
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