Skip to main content

HandlerConfig

Struct HandlerConfig 

Source
pub struct HandlerConfig<C>{ /* private fields */ }

Implementations§

Source§

impl<C> HandlerConfig<C>

Source

pub fn new(id: String, config: Config<C>) -> Self

Source

pub fn id(&self) -> &String

Source

pub fn enabled(&self) -> bool

Source

pub fn timeout(&self) -> Option<u64>

Source

pub fn retry_count(&self) -> Option<u32>

Source

pub fn retry_delay(&self) -> Option<u64>

Source

pub fn config(&self) -> &Config<C>

Source

pub fn set_config(&mut self, config: Config<C>)

Source

pub fn set_enabled(&mut self, enabled: bool)

Source

pub fn set_timeout(&mut self, timeout: Option<u64>)

Source

pub fn set_retry_count(&mut self, retry_count: Option<u32>)

Source

pub fn set_retry_delay(&mut self, retry_delay: Option<u64>)

Source

pub fn set_id(&mut self, id: String)

Source

pub fn builder() -> HandlerConfigBuilder<C>

Trait Implementations§

Source§

impl<C> Debug for HandlerConfig<C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<C> Default for HandlerConfig<C>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<C> Freeze for HandlerConfig<C>
where Config<C>: Freeze,

§

impl<C> RefUnwindSafe for HandlerConfig<C>

§

impl<C> Send for HandlerConfig<C>
where Config<C>: Send,

§

impl<C> Sync for HandlerConfig<C>
where Config<C>: Sync,

§

impl<C> Unpin for HandlerConfig<C>
where Config<C>: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.