pub enum TickSource {
SaMp,
OmpTimer,
}Expand description
Origin of the current SampPlugin::on_tick invocation.
Variants§
SaMp
Fired by SA-MP’s ProcessTick export, on every iteration of the
server’s main loop.
OmpTimer
Fired by the SDK-owned repeating timer on native Open Multiplayer
(created via ITimersComponent in on_ready). Matches the
omp / Omp* identifier convention used elsewhere in the SDK
(OmpComponent, OmpComponentHandle, …).
Trait Implementations§
Source§impl Clone for TickSource
impl Clone for TickSource
Source§fn clone(&self) -> TickSource
fn clone(&self) -> TickSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TickSource
Source§impl Debug for TickSource
impl Debug for TickSource
impl Eq for TickSource
Source§impl PartialEq for TickSource
impl PartialEq for TickSource
impl StructuralPartialEq for TickSource
Auto Trait Implementations§
impl Freeze for TickSource
impl RefUnwindSafe for TickSource
impl Send for TickSource
impl Sync for TickSource
impl Unpin for TickSource
impl UnsafeUnpin for TickSource
impl UnwindSafe for TickSource
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