pub struct TimerConfigBuilder { /* private fields */ }Expand description
Top-level Timer Configuration Builder (顶级定时器配置构建器)
用于构建 TimerConfig 的构建器。
Implementations§
Source§impl TimerConfigBuilder
impl TimerConfigBuilder
Sourcepub fn command_channel_capacity(self, capacity: usize) -> Self
pub fn command_channel_capacity(self, capacity: usize) -> Self
Set command channel capacity (设置命令通道容量)
Sourcepub fn timeout_channel_capacity(self, capacity: usize) -> Self
pub fn timeout_channel_capacity(self, capacity: usize) -> Self
Set timeout channel capacity (设置超时通道容量)
Sourcepub fn small_batch_threshold(self, threshold: usize) -> Self
pub fn small_batch_threshold(self, threshold: usize) -> Self
Set small batch threshold (设置小批量阈值)
Sourcepub fn build(self) -> Result<TimerConfig, TimerError>
pub fn build(self) -> Result<TimerConfig, TimerError>
Trait Implementations§
Source§impl Debug for TimerConfigBuilder
impl Debug for TimerConfigBuilder
Auto Trait Implementations§
impl Freeze for TimerConfigBuilder
impl RefUnwindSafe for TimerConfigBuilder
impl Send for TimerConfigBuilder
impl Sync for TimerConfigBuilder
impl Unpin for TimerConfigBuilder
impl UnwindSafe for TimerConfigBuilder
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