pub struct HandlerConfig<C>where
C: Default + DeserializeOwned,{ /* private fields */ }Implementations§
Source§impl<C> HandlerConfig<C>where
C: Default + DeserializeOwned,
impl<C> HandlerConfig<C>where
C: Default + DeserializeOwned,
pub fn new(id: String, config: Config<C>) -> Self
pub fn id(&self) -> &String
pub fn enabled(&self) -> bool
pub fn timeout(&self) -> Option<u64>
pub fn retry_count(&self) -> Option<u32>
pub fn retry_delay(&self) -> Option<u64>
pub fn config(&self) -> &Config<C>
pub fn set_config(&mut self, config: Config<C>)
pub fn set_enabled(&mut self, enabled: bool)
pub fn set_timeout(&mut self, timeout: Option<u64>)
pub fn set_retry_count(&mut self, retry_count: Option<u32>)
pub fn set_retry_delay(&mut self, retry_delay: Option<u64>)
pub fn set_id(&mut self, id: String)
pub fn builder() -> HandlerConfigBuilder<C>
Trait Implementations§
Source§impl<C> Debug for HandlerConfig<C>
impl<C> Debug for HandlerConfig<C>
Source§impl<C> Default for HandlerConfig<C>where
C: Default + DeserializeOwned,
impl<C> Default for HandlerConfig<C>where
C: Default + DeserializeOwned,
Auto Trait Implementations§
impl<C> Freeze for HandlerConfig<C>
impl<C> RefUnwindSafe for HandlerConfig<C>where
Config<C>: RefUnwindSafe,
impl<C> Send for HandlerConfig<C>
impl<C> Sync for HandlerConfig<C>
impl<C> Unpin for HandlerConfig<C>
impl<C> UnsafeUnpin for HandlerConfig<C>where
Config<C>: UnsafeUnpin,
impl<C> UnwindSafe for HandlerConfig<C>where
Config<C>: UnwindSafe,
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