pub struct RepeatDerivationParams { /* private fields */ }Expand description
Parameters for repeat derivation that group the repeat policy fields with derivation state.
Implementations§
Source§impl RepeatDerivationParams
impl RepeatDerivationParams
Sourcepub fn new(
count: u32,
interval_secs: u64,
already_derived: u32,
schedule_origin: u64,
) -> Self
pub fn new( count: u32, interval_secs: u64, already_derived: u32, schedule_origin: u64, ) -> Self
Creates a new set of repeat derivation parameters.
Sourcepub fn interval_secs(&self) -> u64
pub fn interval_secs(&self) -> u64
Returns the interval in seconds between successive runs.
Sourcepub fn already_derived(&self) -> u32
pub fn already_derived(&self) -> u32
Returns the number of runs already derived.
Sourcepub fn schedule_origin(&self) -> u64
pub fn schedule_origin(&self) -> u64
Returns the stable base timestamp for schedule calculation.
Auto Trait Implementations§
impl Freeze for RepeatDerivationParams
impl RefUnwindSafe for RepeatDerivationParams
impl Send for RepeatDerivationParams
impl Sync for RepeatDerivationParams
impl Unpin for RepeatDerivationParams
impl UnsafeUnpin for RepeatDerivationParams
impl UnwindSafe for RepeatDerivationParams
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