pub struct ServiceConfigBuilder { /* private fields */ }Expand description
服务配置构建器
Implementations§
Source§impl ServiceConfigBuilder
impl ServiceConfigBuilder
Sourcepub fn command_channel_capacity(self, capacity: usize) -> Self
pub fn command_channel_capacity(self, capacity: usize) -> Self
设置命令通道容量
Sourcepub fn timeout_channel_capacity(self, capacity: usize) -> Self
pub fn timeout_channel_capacity(self, capacity: usize) -> Self
设置超时通道容量
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