pub struct SubscriptionOptions { /* private fields */ }
Implementations§
Source§impl SubscriptionOptions
impl SubscriptionOptions
Sourcepub fn builder() -> Builder<MinDelayStage>
pub fn builder() -> Builder<MinDelayStage>
Returns a new builder.
Source§impl SubscriptionOptions
impl SubscriptionOptions
Sourcepub fn new(min_delay: Milliseconds) -> Self
pub fn new(min_delay: Milliseconds) -> Self
Constructs a new instance of the type.
Sourcepub fn min_delay(&self) -> Milliseconds
pub fn min_delay(&self) -> Milliseconds
The minimum delay between SubscriptionUpdate
s sent for this subscription.
Sourcepub fn allow_appends(&self) -> Option<bool>
pub fn allow_appends(&self) -> Option<bool>
Can be set to false
by the client to indicate that it doesn’t support appends for this subscription
and always wants to receive full results. Defaults to false
if not set.
The expectation is that clients should implement support for appends for any of the results covered in
ComputeNodeAppendResponse
and set this to true
as quickly as possible. However, in order to support
adding new sub-types to ComputeNodeAppendResponse
without breaking clients that haven’t upgraded yet
and haven’t yet added support for them, we default this to false
and make clients opt-in as soon as they
implement support.
Trait Implementations§
Source§impl Clone for SubscriptionOptions
impl Clone for SubscriptionOptions
Source§fn clone(&self) -> SubscriptionOptions
fn clone(&self) -> SubscriptionOptions
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 SubscriptionOptions
impl Debug for SubscriptionOptions
Source§impl<'de> Deserialize<'de> for SubscriptionOptions
impl<'de> Deserialize<'de> for SubscriptionOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SubscriptionOptions> for Builder<Complete>
impl From<SubscriptionOptions> for Builder<Complete>
Source§fn from(v: SubscriptionOptions) -> Self
fn from(v: SubscriptionOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for SubscriptionOptions
impl Hash for SubscriptionOptions
Source§impl Ord for SubscriptionOptions
impl Ord for SubscriptionOptions
Source§fn cmp(&self, other: &SubscriptionOptions) -> Ordering
fn cmp(&self, other: &SubscriptionOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SubscriptionOptions
impl PartialEq for SubscriptionOptions
Source§impl PartialOrd for SubscriptionOptions
impl PartialOrd for SubscriptionOptions
Source§impl Serialize for SubscriptionOptions
impl Serialize for SubscriptionOptions
impl Copy for SubscriptionOptions
impl Eq for SubscriptionOptions
impl StructuralPartialEq for SubscriptionOptions
Auto Trait Implementations§
impl Freeze for SubscriptionOptions
impl RefUnwindSafe for SubscriptionOptions
impl Send for SubscriptionOptions
impl Sync for SubscriptionOptions
impl Unpin for SubscriptionOptions
impl UnwindSafe for SubscriptionOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request