pub struct ConfigBuilder { /* private fields */ }
Expand description
Configuration builder for fluent API
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
pub fn redis_url(self, url: impl Into<String>) -> Self
pub fn workers(self, count: usize) -> Self
pub fn enable_auto_register(self, enabled: bool) -> Self
pub fn enable_scheduler(self, enabled: bool) -> Self
pub fn autoscaler_config(self, config: AutoScalerConfig) -> Self
pub fn build(self) -> TaskQueueConfig
Trait Implementations§
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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