pub struct SystemDescriptor {
pub name: String,
pub phase: Phase,
pub every: u64,
pub access: SystemAccess,
pub budget: Option<Duration>,
pub runner: Box<dyn SystemRunner>,
}Expand description
A registered system with its metadata.
Fields§
§name: StringHuman-readable name for logging.
phase: PhaseWhich tick phase this system runs in.
every: u64Frequency divisor: runs when tick_count % every == 0.
access: SystemAccessComponent access declaration.
budget: Option<Duration>Optional CPU budget per invocation. None means unlimited.
runner: Box<dyn SystemRunner>The system function (type-erased).
Auto Trait Implementations§
impl Freeze for SystemDescriptor
impl !RefUnwindSafe for SystemDescriptor
impl Send for SystemDescriptor
impl !Sync for SystemDescriptor
impl Unpin for SystemDescriptor
impl UnsafeUnpin for SystemDescriptor
impl !UnwindSafe for SystemDescriptor
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