pub struct ConfigParams { /* private fields */ }Expand description
The struct contains all config params for running the task worker
Implementations§
Source§impl ConfigParams
impl ConfigParams
pub fn url(&self) -> &Url
pub fn username(&self) -> &str
pub fn password(&self) -> &str
pub fn poll_interval(&self) -> usize
pub fn id(&self) -> &str
pub fn lock_duration(&self) -> u64
pub fn with_url(self, url: Url) -> Self
pub fn with_auth(self, username: String, password: String) -> Self
pub fn with_poll_interval(self, poll_interval: usize) -> Self
pub fn with_worker_id(self, id: String) -> Self
pub fn with_lock_duration(self, lock_duration: u64) -> Self
Trait Implementations§
Source§impl Clone for ConfigParams
impl Clone for ConfigParams
Source§fn clone(&self) -> ConfigParams
fn clone(&self) -> ConfigParams
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 ConfigParams
impl Debug for ConfigParams
Source§impl Default for ConfigParams
impl Default for ConfigParams
Source§impl<'de> Deserialize<'de> for ConfigParams
impl<'de> Deserialize<'de> for ConfigParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigParams
impl RefUnwindSafe for ConfigParams
impl Send for ConfigParams
impl Sync for ConfigParams
impl Unpin for ConfigParams
impl UnwindSafe for ConfigParams
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