Struct foca::PeriodicParams
source · pub struct PeriodicParams {
pub frequency: Duration,
pub num_members: NonZeroUsize,
}
Expand description
Configuration for a task that should happen periodically
Fields§
§frequency: Duration
How often should the task be performed
num_members: NonZeroUsize
How many random members should be chosen
Trait Implementations§
source§impl Clone for PeriodicParams
impl Clone for PeriodicParams
source§fn clone(&self) -> PeriodicParams
fn clone(&self) -> PeriodicParams
Returns a copy 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 PeriodicParams
impl Debug for PeriodicParams
source§impl<'de> Deserialize<'de> for PeriodicParams
impl<'de> Deserialize<'de> for PeriodicParams
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 PeriodicParams
impl RefUnwindSafe for PeriodicParams
impl Send for PeriodicParams
impl Sync for PeriodicParams
impl Unpin for PeriodicParams
impl UnwindSafe for PeriodicParams
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