pub struct SystemMeta { /* private fields */ }Expand description
The metadata of a System.
Implementations§
Source§impl SystemMeta
impl SystemMeta
Sourcepub fn set_name(&mut self, new_name: impl Into<Cow<'static, str>>)
pub fn set_name(&mut self, new_name: impl Into<Cow<'static, str>>)
Sets the name of this system.
Useful to give closure systems more readable and unique names for debugging and tracing.
Sourcepub fn set_non_send(&mut self)
pub fn set_non_send(&mut self)
Sets the system to be not Send.
This is irreversible.
Sourcepub fn has_deferred(&self) -> bool
pub fn has_deferred(&self) -> bool
Returns true if the system has deferred SystemParam’s
Sourcepub fn set_has_deferred(&mut self)
pub fn set_has_deferred(&mut self)
Marks the system as having deferred buffers like Commands
This lets the scheduler insert ApplyDeferred systems automatically.
Trait Implementations§
Source§impl Clone for SystemMeta
impl Clone for SystemMeta
Source§fn clone(&self) -> SystemMeta
fn clone(&self) -> SystemMeta
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 moreAuto Trait Implementations§
impl Freeze for SystemMeta
impl RefUnwindSafe for SystemMeta
impl Send for SystemMeta
impl Sync for SystemMeta
impl Unpin for SystemMeta
impl UnwindSafe for SystemMeta
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,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.