pub struct SubscriberConfig {
pub ping_interval: Duration,
pub retry_setting: Option<RetrySetting>,
pub stream_ack_deadline_seconds: i32,
pub max_outstanding_messages: i64,
pub max_outstanding_bytes: i64,
}Fields§
§ping_interval: Durationping interval for Bi Directional Streaming
retry_setting: Option<RetrySetting>§stream_ack_deadline_seconds: i32It is important for exactly_once_delivery The ack deadline to use for the stream. This must be provided in the first request on the stream, but it can also be updated on subsequent requests from client to server. The minimum deadline you can specify is 10 seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
max_outstanding_messages: i64Flow control settings for the maximum number of outstanding messages. When
there are max_outstanding_messages or more currently sent to the
streaming pull client that have not yet been acked or nacked, the server
stops sending more messages. The sending of messages resumes once the
number of outstanding messages is less than this value. If the value is
<= 0, there is no limit to the number of outstanding messages. This
property can only be set on the initial StreamingPullRequest. If it is set
on a subsequent request, the stream will be aborted with status
INVALID_ARGUMENT.
max_outstanding_bytes: i64Trait Implementations§
Source§impl Clone for SubscriberConfig
impl Clone for SubscriberConfig
Source§fn clone(&self) -> SubscriberConfig
fn clone(&self) -> SubscriberConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubscriberConfig
impl Debug for SubscriberConfig
Auto Trait Implementations§
impl Freeze for SubscriberConfig
impl RefUnwindSafe for SubscriberConfig
impl Send for SubscriberConfig
impl Sync for SubscriberConfig
impl Unpin for SubscriberConfig
impl UnwindSafe for SubscriberConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request