pub struct ShredStreamConfig {
pub connection_timeout_ms: u64,
pub request_timeout_ms: u64,
pub max_decoding_message_size: usize,
pub reconnect_delay_ms: u64,
pub max_reconnect_attempts: u32,
}Expand description
ShredStream 客户端配置
Fields§
§connection_timeout_ms: u64连接超时(毫秒)
request_timeout_ms: u64请求超时(毫秒)
max_decoding_message_size: usize最大解码消息大小(字节)
reconnect_delay_ms: u64自动重连延迟(毫秒)
max_reconnect_attempts: u32最大重连次数(0 表示无限重连)
Implementations§
Source§impl ShredStreamConfig
impl ShredStreamConfig
Sourcepub fn low_latency() -> Self
pub fn low_latency() -> Self
低延迟配置 - 最小化处理延迟
Sourcepub fn high_throughput() -> Self
pub fn high_throughput() -> Self
高吞吐配置 - 优化批量处理
Trait Implementations§
Source§impl Clone for ShredStreamConfig
impl Clone for ShredStreamConfig
Source§fn clone(&self) -> ShredStreamConfig
fn clone(&self) -> ShredStreamConfig
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 ShredStreamConfig
impl Debug for ShredStreamConfig
Auto Trait Implementations§
impl Freeze for ShredStreamConfig
impl RefUnwindSafe for ShredStreamConfig
impl Send for ShredStreamConfig
impl Sync for ShredStreamConfig
impl Unpin for ShredStreamConfig
impl UnsafeUnpin for ShredStreamConfig
impl UnwindSafe for ShredStreamConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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::RequestSource§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