pub struct ResidentRemoved<P>where
P: IntoScriptPluginParams,{
pub attachment: ScriptAttachment,
pub removed_from_context: Arc<Mutex<RawMutex, <P as IntoScriptPluginParams>::C>>,
}Expand description
A script unloading state machine state, describes the state in which an attachment is no longer resident in the context, but the context still persists as it was not the last resident
Fields§
§attachment: ScriptAttachmentThe attachment having a resident removed
removed_from_context: Arc<Mutex<RawMutex, <P as IntoScriptPluginParams>::C>>The context this attachment was removed from
Trait Implementations§
Source§impl<P> Clone for ResidentRemoved<P>where
P: IntoScriptPluginParams,
impl<P> Clone for ResidentRemoved<P>where
P: IntoScriptPluginParams,
Source§fn clone(&self) -> ResidentRemoved<P>
fn clone(&self) -> ResidentRemoved<P>
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 moreSource§impl<P> Event for ResidentRemoved<P>
impl<P> Event for ResidentRemoved<P>
Source§type Trigger<'a> = GlobalTrigger
type Trigger<'a> = GlobalTrigger
Defines which observers will run, what data will be passed to them, and the order they will be run in. See
Trigger for more info.Source§impl<P> MachineState<P> for ResidentRemoved<P>where
P: IntoScriptPluginParams,
impl<P> MachineState<P> for ResidentRemoved<P>where
P: IntoScriptPluginParams,
Source§fn poll_next(
&mut self,
_ctxt: &MachineContext,
_world: &mut World,
) -> Box<dyn Future<Output = Result<Box<dyn MachineState<P>>, ScriptError>> + Send + Sync>
fn poll_next( &mut self, _ctxt: &MachineContext, _world: &mut World, ) -> Box<dyn Future<Output = Result<Box<dyn MachineState<P>>, ScriptError>> + Send + Sync>
Polls the machine for the next state. Read more
Source§fn trigger_event(&mut self, world: &mut World)
fn trigger_event(&mut self, world: &mut World)
Source§fn state_name(&self) -> &'static str
fn state_name(&self) -> &'static str
A readable state name
Source§fn is_final(&self) -> bool
fn is_final(&self) -> bool
Final states designate that a state machine should complete processing. Returning true will cause the state to be recognize as a final state
Source§fn build_script_error_event(
&self,
attachment: &ScriptAttachment,
base_error: ScriptError,
) -> ScriptErrorMessage
fn build_script_error_event( &self, attachment: &ScriptAttachment, base_error: ScriptError, ) -> ScriptErrorMessage
Build script error event with the most context possible
Auto Trait Implementations§
impl<P> !RefUnwindSafe for ResidentRemoved<P>
impl<P> !Unpin for ResidentRemoved<P>
impl<P> !UnwindSafe for ResidentRemoved<P>
impl<P> Forget for ResidentRemoved<P>
impl<P> Freeze for ResidentRemoved<P>
impl<P> Move for ResidentRemoved<P>
impl<P> Send for ResidentRemoved<P>
impl<P> Sync for ResidentRemoved<P>
impl<P> UnsafeUnpin for ResidentRemoved<P>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> Context for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<E> EventPattern for Ewhere
E: Event,
impl<E> EventPattern for Ewhere
E: Event,
Source§type Components = ()
type Components = ()
Components to watch for this event. This is used by
EntityComponentsTrigger
to determine which entities to run observers for. Read moreSource§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§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> ⓘ
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 moreSource§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.
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSync for Twhere
T: Sync,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Settings for T
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of
self.