pub struct RegistryBuilder { /* private fields */ }
Expand description
Registry builder for configuring the registry
Implementations§
Source§impl RegistryBuilder
impl RegistryBuilder
Sourcepub const fn max_handlers_per_type(self, max: usize) -> Self
pub const fn max_handlers_per_type(self, max: usize) -> Self
Set maximum handlers per type
Sourcepub const fn enable_metrics(self, enable: bool) -> Self
pub const fn enable_metrics(self, enable: bool) -> Self
Enable or disable metrics
Sourcepub const fn enable_validation(self, enable: bool) -> Self
pub const fn enable_validation(self, enable: bool) -> Self
Enable or disable validation
Sourcepub const fn handler_timeout_ms(self, timeout: u64) -> Self
pub const fn handler_timeout_ms(self, timeout: u64) -> Self
Set handler timeout
Sourcepub const fn enable_hot_reload(self, enable: bool) -> Self
pub const fn enable_hot_reload(self, enable: bool) -> Self
Enable or disable hot reload
Sourcepub fn build(self) -> HandlerRegistry
pub fn build(self) -> HandlerRegistry
Build the registry
Trait Implementations§
Source§impl Debug for RegistryBuilder
impl Debug for RegistryBuilder
Auto Trait Implementations§
impl Freeze for RegistryBuilder
impl RefUnwindSafe for RegistryBuilder
impl Send for RegistryBuilder
impl Sync for RegistryBuilder
impl Unpin for RegistryBuilder
impl UnwindSafe for RegistryBuilder
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