Struct fred::types::PerformanceConfig
source · pub struct PerformanceConfig {
pub auto_pipeline: bool,
pub backpressure: BackpressureConfig,
pub default_command_timeout: Duration,
pub max_feed_count: u64,
pub broadcast_channel_capacity: usize,
pub blocking_encode_threshold: usize,
}Expand description
Configuration options that can affect the performance of the client.
Fields§
§auto_pipeline: boolWhether the client should automatically pipeline commands across tasks when possible.
The Pipeline interface can be used to pipeline commands within one task, whereas this flag can automatically pipeline commands across tasks.
Default: true
backpressure: BackpressureConfigConfiguration options for backpressure features in the client.
default_command_timeout: DurationAn optional timeout to apply to all commands.
If 0 this will disable any timeout being applied to commands. Callers can also set timeouts on individual
commands via the with_options interface.
Default: 0
max_feed_count: u64The maximum number of frames that will be fed to a socket before flushing.
Note: in some circumstances the client with always flush the socket (QUIT, EXEC, etc).
Default: 200
broadcast_channel_capacity: usizeThe default capacity used when creating broadcast channels in the EventInterface.
Default: 32
blocking_encode_threshold: usizeblocking-encoding only.The minimum size, in bytes, of frames that should be encoded or decoded with a blocking task.
See block_in_place for more information.
Default: 50_000_000
Trait Implementations§
source§impl Clone for PerformanceConfig
impl Clone for PerformanceConfig
source§fn clone(&self) -> PerformanceConfig
fn clone(&self) -> PerformanceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PerformanceConfig
impl Debug for PerformanceConfig
source§impl Default for PerformanceConfig
impl Default for PerformanceConfig
source§impl PartialEq for PerformanceConfig
impl PartialEq for PerformanceConfig
impl Eq for PerformanceConfig
impl StructuralPartialEq for PerformanceConfig
Auto Trait Implementations§
impl Freeze for PerformanceConfig
impl RefUnwindSafe for PerformanceConfig
impl Send for PerformanceConfig
impl Sync for PerformanceConfig
impl Unpin for PerformanceConfig
impl UnwindSafe for PerformanceConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 more