pub struct PeriodicDriver {
pub(crate) driver_spell_id: u32,
pub(crate) tick_interval_ms: NonZeroU32,
pub(crate) triggered_duration_ms: Option<NonZeroU32>,
pub(crate) hasted_ticks: bool,
pub(crate) tick: CastHookFn,
}Expand description
Encounter-lifetime periodic work owned by a real spell or passive driver.
This is not an aura: it has no stacks, duration, dispel state, or buffer projection.
Fields§
§driver_spell_id: u32§tick_interval_ms: NonZeroU32§triggered_duration_ms: Option<NonZeroU32>§hasted_ticks: bool§tick: CastHookFnImplementations§
Source§impl PeriodicDriver
impl PeriodicDriver
Sourcepub const fn new(
driver_spell_id: u32,
tick_interval_ms: u32,
tick: CastHookFn,
) -> Self
pub const fn new( driver_spell_id: u32, tick_interval_ms: u32, tick: CastHookFn, ) -> Self
pub const fn hasted(self) -> Self
Sourcepub const fn triggered_for(self, duration_ms: u32) -> Self
pub const fn triggered_for(self, duration_ms: u32) -> Self
Run only after explicit activation, stopping when the resolved duration elapses.
§Panics
Panics when duration_ms is zero.
Trait Implementations§
Source§impl Clone for PeriodicDriver
impl Clone for PeriodicDriver
Source§fn clone(&self) -> PeriodicDriver
fn clone(&self) -> PeriodicDriver
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 PeriodicDriver
impl Debug for PeriodicDriver
impl Copy for PeriodicDriver
Auto Trait Implementations§
impl Freeze for PeriodicDriver
impl RefUnwindSafe for PeriodicDriver
impl Send for PeriodicDriver
impl Sync for PeriodicDriver
impl Unpin for PeriodicDriver
impl UnsafeUnpin for PeriodicDriver
impl UnwindSafe for PeriodicDriver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more