Struct bevy::ecs::system::ExclusiveFunctionSystem
pub struct ExclusiveFunctionSystem<Param, Marker, F>where
Param: ExclusiveSystemParam,{ /* private fields */ }
Expand description
A function system that runs with exclusive World
access.
You get this by calling IntoSystem::into_system
on a function that only accepts
ExclusiveSystemParam
s.
ExclusiveFunctionSystem
must be .initialized
before they can be run.
Trait Implementations§
§impl<Param, Marker, F> System for ExclusiveFunctionSystem<Param, Marker, F>where
Param: 'static + ExclusiveSystemParam,
Marker: 'static,
F: 'static + ExclusiveSystemParamFunction<Param, Marker> + Send + Sync,
impl<Param, Marker, F> System for ExclusiveFunctionSystem<Param, Marker, F>where
Param: 'static + ExclusiveSystemParam,
Marker: 'static,
F: 'static + ExclusiveSystemParamFunction<Param, Marker> + Send + Sync,
§fn component_access(&self) -> &Access<ComponentId>
fn component_access(&self) -> &Access<ComponentId>
Returns the system’s component
Access
.§fn archetype_component_access(&self) -> &Access<ArchetypeComponentId>
fn archetype_component_access(&self) -> &Access<ArchetypeComponentId>
Returns the system’s archetype component
Access
.§unsafe fn run_unsafe(
&mut self,
_input: <ExclusiveFunctionSystem<Param, Marker, F> as System>::In,
_world: &World
) -> <ExclusiveFunctionSystem<Param, Marker, F> as System>::Out
unsafe fn run_unsafe(
&mut self,
_input: <ExclusiveFunctionSystem<Param, Marker, F> as System>::In,
_world: &World
) -> <ExclusiveFunctionSystem<Param, Marker, F> as System>::Out
Runs the system with the given input in the world. Unlike
System::run
, this function
takes a shared reference to World
and may therefore break Rust’s aliasing rules, making
it unsafe to call. Read more§fn run(
&mut self,
_input: <ExclusiveFunctionSystem<Param, Marker, F> as System>::In,
world: &mut World
) -> <ExclusiveFunctionSystem<Param, Marker, F> as System>::Out
fn run(
&mut self,
_input: <ExclusiveFunctionSystem<Param, Marker, F> as System>::In,
world: &mut World
) -> <ExclusiveFunctionSystem<Param, Marker, F> as System>::Out
Runs the system with the given input in the world.
§fn is_exclusive(&self) -> bool
fn is_exclusive(&self) -> bool
Returns true if the system must be run exclusively.
§fn get_last_change_tick(&self) -> u32
fn get_last_change_tick(&self) -> u32
Gets the system’s last change tick
§fn set_last_change_tick(&mut self, last_change_tick: u32)
fn set_last_change_tick(&mut self, last_change_tick: u32)
Sets the system’s last change tick Read more
fn apply_buffers(&mut self, world: &mut World)
§fn initialize(&mut self, world: &mut World)
fn initialize(&mut self, world: &mut World)
Initialize the system.
§fn update_archetype_component_access(&mut self, _world: &World)
fn update_archetype_component_access(&mut self, _world: &World)
Update the system’s archetype component
Access
.fn check_change_tick(&mut self, change_tick: u32)
§fn default_labels(&self) -> Vec<SystemLabelId, Global> ⓘ
fn default_labels(&self) -> Vec<SystemLabelId, Global> ⓘ
The default labels for the system
Auto Trait Implementations§
impl<Param, Marker, F> RefUnwindSafe for ExclusiveFunctionSystem<Param, Marker, F>where
F: RefUnwindSafe,
<Param as ExclusiveSystemParam>::Fetch: RefUnwindSafe,
impl<Param, Marker, F> Send for ExclusiveFunctionSystem<Param, Marker, F>where
F: Send,
impl<Param, Marker, F> Sync for ExclusiveFunctionSystem<Param, Marker, F>where
F: Sync,
impl<Param, Marker, F> Unpin for ExclusiveFunctionSystem<Param, Marker, F>where
F: Unpin,
<Param as ExclusiveSystemParam>::Fetch: Unpin,
impl<Param, Marker, F> UnwindSafe for ExclusiveFunctionSystem<Param, Marker, F>where
F: UnwindSafe,
<Param as ExclusiveSystemParam>::Fetch: UnwindSafe,
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist. Read more§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read moresource§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<SystemA, ParamA, Payload, SystemB, ParamB, Out> IntoPipeSystem<ParamA, Payload, SystemB, ParamB, Out> for SystemAwhere
SystemA: IntoSystem<(), Payload, ParamA>,
SystemB: IntoSystem<Payload, Out, ParamB>,
impl<SystemA, ParamA, Payload, SystemB, ParamB, Out> IntoPipeSystem<ParamA, Payload, SystemB, ParamB, Out> for SystemAwhere
SystemA: IntoSystem<(), Payload, ParamA>,
SystemB: IntoSystem<Payload, Out, ParamB>,
§fn pipe(
self,
system: SystemB
) -> PipeSystem<<SystemA as IntoSystem<(), Payload, ParamA>>::System, <SystemB as IntoSystem<Payload, Out, ParamB>>::System>
fn pipe(
self,
system: SystemB
) -> PipeSystem<<SystemA as IntoSystem<(), Payload, ParamA>>::System, <SystemB as IntoSystem<Payload, Out, ParamB>>::System>
Pass the output of this system
A
into a second system B
, creating a new compound system.§impl<In, Out, Sys> IntoSystem<In, Out, AlreadyWasSystem> for Syswhere
Sys: System<In = In, Out = Out>,
impl<In, Out, Sys> IntoSystem<In, Out, AlreadyWasSystem> for Syswhere
Sys: System<In = In, Out = Out>,
type System = Sys
§fn into_system(this: Sys) -> Sys
fn into_system(this: Sys) -> Sys
Turns this value into its corresponding
System
.§impl<S, Params> IntoSystemDescriptor<Params> for Swhere
S: IntoSystem<(), (), Params>,
impl<S, Params> IntoSystemDescriptor<Params> for Swhere
S: IntoSystem<(), (), Params>,
§fn with_run_criteria<Marker>(
self,
run_criteria: impl IntoRunCriteria<Marker>
) -> SystemDescriptor
fn with_run_criteria<Marker>(
self,
run_criteria: impl IntoRunCriteria<Marker>
) -> SystemDescriptor
Assigns a run criteria to the system. Can be a new descriptor or a label of a
run criteria defined elsewhere. Read more
§fn label(self, label: impl SystemLabel) -> SystemDescriptor
fn label(self, label: impl SystemLabel) -> SystemDescriptor
Assigns a label to the system; there can be more than one, and it doesn’t have to be unique.
§fn before<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
fn before<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
Specifies that the system should run before systems with the given label.
§fn after<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
fn after<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
Specifies that the system should run after systems with the given label.
§fn ambiguous_with<Marker>(
self,
label: impl AsSystemLabel<Marker>
) -> SystemDescriptor
fn ambiguous_with<Marker>(
self,
label: impl AsSystemLabel<Marker>
) -> SystemDescriptor
Marks this system as ambiguous with any system with the specified label.
This means that execution order between these systems does not matter,
which allows some warnings to be silenced. Read more
§fn ignore_all_ambiguities(self) -> SystemDescriptor
fn ignore_all_ambiguities(self) -> SystemDescriptor
Specifies that this system should opt out of
execution order ambiguity detection. Read more
§fn at_start(self) -> SystemDescriptor
fn at_start(self) -> SystemDescriptor
Specifies that the system should run with other exclusive systems at the start of stage.
§fn before_commands(self) -> SystemDescriptor
fn before_commands(self) -> SystemDescriptor
Specifies that the system should run with other exclusive systems after the parallel
systems and before command buffer application. Read more
§fn at_end(self) -> SystemDescriptor
fn at_end(self) -> SystemDescriptor
Specifies that the system should run with other exclusive systems at the end of stage.