pub struct SubscriptionQoS {
pub sync_mode: SyncMode,
pub max_documents: Option<usize>,
pub update_rate_ms: Option<u64>,
}Expand description
QoS settings for a subscription (Issue #356)
Controls sync behavior including sync mode, rate limiting, and document limits.
Fields§
§sync_mode: SyncModeSync mode (FullHistory, LatestOnly, WindowedHistory)
max_documents: Option<usize>Maximum number of documents to sync (None = unlimited)
update_rate_ms: Option<u64>Minimum time between updates in ms (rate limiting)
Implementations§
Source§impl SubscriptionQoS
impl SubscriptionQoS
Sourcepub fn latest_only() -> Self
pub fn latest_only() -> Self
Create QoS with LatestOnly mode (no history)
Sourcepub fn full_history() -> Self
pub fn full_history() -> Self
Create QoS with FullHistory mode (all deltas)
Sourcepub fn with_max_documents(self, max: usize) -> Self
pub fn with_max_documents(self, max: usize) -> Self
Set max documents
Sourcepub fn with_rate_limit(self, rate_ms: u64) -> Self
pub fn with_rate_limit(self, rate_ms: u64) -> Self
Set update rate limit
Trait Implementations§
Source§impl Clone for SubscriptionQoS
impl Clone for SubscriptionQoS
Source§fn clone(&self) -> SubscriptionQoS
fn clone(&self) -> SubscriptionQoS
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 Debug for SubscriptionQoS
impl Debug for SubscriptionQoS
Source§impl Default for SubscriptionQoS
impl Default for SubscriptionQoS
Source§fn default() -> SubscriptionQoS
fn default() -> SubscriptionQoS
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubscriptionQoS
impl RefUnwindSafe for SubscriptionQoS
impl Send for SubscriptionQoS
impl Sync for SubscriptionQoS
impl Unpin for SubscriptionQoS
impl UnsafeUnpin for SubscriptionQoS
impl UnwindSafe for SubscriptionQoS
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