pub struct ServiceConfigBuilder {
pub command_channel_capacity: usize,
pub timeout_channel_capacity: usize,
}Expand description
Service Configuration Builder
用于构建 ServiceConfig 的构建器。
Fields§
§command_channel_capacity: usizeCommand channel capacity
命令通道容量
timeout_channel_capacity: usizeTimeout channel capacity
超时通道容量
Implementations§
Source§impl ServiceConfigBuilder
impl ServiceConfigBuilder
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 build(self) -> Result<ServiceConfig, TimerError>
pub fn build(self) -> Result<ServiceConfig, TimerError>
Trait Implementations§
Source§impl Clone for ServiceConfigBuilder
impl Clone for ServiceConfigBuilder
Source§fn clone(&self) -> ServiceConfigBuilder
fn clone(&self) -> ServiceConfigBuilder
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 ServiceConfigBuilder
impl Debug for ServiceConfigBuilder
Auto Trait Implementations§
impl Freeze for ServiceConfigBuilder
impl RefUnwindSafe for ServiceConfigBuilder
impl Send for ServiceConfigBuilder
impl Sync for ServiceConfigBuilder
impl Unpin for ServiceConfigBuilder
impl UnwindSafe for ServiceConfigBuilder
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