pub struct SyncStream<'a> { /* private fields */ }Implementations§
Source§impl<'a> SyncStream<'a>
impl<'a> SyncStream<'a>
pub fn new( db: &'a PowerSyncDatabase, name: &'a str, parameters: Option<&Map<String, Value>>, ) -> Self
Sourcepub async fn subscribe(&self) -> Result<StreamSubscription, PowerSyncError>
pub async fn subscribe(&self) -> Result<StreamSubscription, PowerSyncError>
Subscribes to this sync stream with the default options.
Sourcepub async fn subscribe_with(
&self,
options: StreamSubscriptionOptions,
) -> Result<StreamSubscription, PowerSyncError>
pub async fn subscribe_with( &self, options: StreamSubscriptionOptions, ) -> Result<StreamSubscription, PowerSyncError>
Subscribes to this sync stream with custom options.
Sourcepub async fn unsubscribe_all(&self) -> Result<(), PowerSyncError>
pub async fn unsubscribe_all(&self) -> Result<(), PowerSyncError>
Unsubscribes all subscriptions currently active on this sync stream.
Auto Trait Implementations§
impl<'a> Freeze for SyncStream<'a>
impl<'a> !RefUnwindSafe for SyncStream<'a>
impl<'a> Send for SyncStream<'a>
impl<'a> Sync for SyncStream<'a>
impl<'a> Unpin for SyncStream<'a>
impl<'a> !UnwindSafe for SyncStream<'a>
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