pub struct StreamSubscriptionOptions { /* private fields */ }Expand description
Options customizing a stream subscription, passed to SyncStream::subscribe_with.
Implementations§
Source§impl StreamSubscriptionOptions
impl StreamSubscriptionOptions
Sourcepub fn with_ttl(&mut self, ttl: Duration) -> &mut Self
pub fn with_ttl(&mut self, ttl: Duration) -> &mut Self
Configures a time-to-live for the sync stream.
When all StreamSubscriptions for a sync stream are dropped, PowerSync normally stops requesting the stream after a while. The duration these streams are kept active can be configured here.
Sourcepub fn with_priority(&mut self, priority: StreamPriority) -> &mut Self
pub fn with_priority(&mut self, priority: StreamPriority) -> &mut Self
Request a subscription to the sync stream with a given StreamPriority.
Trait Implementations§
Source§impl Clone for StreamSubscriptionOptions
impl Clone for StreamSubscriptionOptions
Source§fn clone(&self) -> StreamSubscriptionOptions
fn clone(&self) -> StreamSubscriptionOptions
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 Default for StreamSubscriptionOptions
impl Default for StreamSubscriptionOptions
Source§fn default() -> StreamSubscriptionOptions
fn default() -> StreamSubscriptionOptions
Returns the “default value” for a type. Read more
impl Copy for StreamSubscriptionOptions
Auto Trait Implementations§
impl Freeze for StreamSubscriptionOptions
impl RefUnwindSafe for StreamSubscriptionOptions
impl Send for StreamSubscriptionOptions
impl Sync for StreamSubscriptionOptions
impl Unpin for StreamSubscriptionOptions
impl UnsafeUnpin for StreamSubscriptionOptions
impl UnwindSafe for StreamSubscriptionOptions
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