SpawnKey

Struct SpawnKey 

Source
pub struct SpawnKey(/* private fields */);
๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Expand description

A unique string-based identifier used to spawn a spawnable registered with Spawnables.

Implementationsยง

Sourceยง

impl SpawnKey

Source

pub fn new(name: impl Into<String>) -> Self

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Source

pub fn name(&self) -> &str

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details

Trait Implementationsยง

Sourceยง

impl Clone for SpawnKey

Sourceยง

fn clone(&self) -> SpawnKey

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for SpawnKey

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FormatResult

Formats the value using the given formatter. Read more
Sourceยง

impl From<&str> for SpawnKey

Sourceยง

fn from(name: &str) -> Self

Converts to this type from the input type.
Sourceยง

impl From<String> for SpawnKey

Sourceยง

fn from(name: String) -> Self

Converts to this type from the input type.
Sourceยง

impl FromReflect for SpawnKey
where SpawnKey: Any + Send + Sync, String: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Sourceยง

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Constructs a concrete instance of Self from a reflected value.
Sourceยง

fn take_from_reflect( reflect: Box<dyn PartialReflect>, ) -> Result<Self, Box<dyn PartialReflect>>

Attempts to downcast the given value to Self using, constructing the value using from_reflect if that fails. Read more
Sourceยง

impl GetTypeRegistration for SpawnKey
where SpawnKey: Any + Send + Sync, String: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Sourceยง

fn get_type_registration() -> TypeRegistration

Returns the default TypeRegistration for this type.
Sourceยง

fn register_type_dependencies(registry: &mut TypeRegistry)

Registers other types needed by this type. Read more
Sourceยง

impl Hash for SpawnKey

Sourceยง

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 ยท Sourceยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Sourceยง

impl PartialEq for SpawnKey

Sourceยง

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl PartialReflect for SpawnKey
where SpawnKey: Any + Send + Sync, String: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Sourceยง

fn get_represented_type_info(&self) -> Option<&'static TypeInfo>

Returns the TypeInfo of the type represented by this value. Read more
Sourceยง

fn clone_value(&self) -> Box<dyn PartialReflect>

Clones the value as a Reflect trait object. Read more
Sourceยง

fn try_apply(&mut self, value: &dyn PartialReflect) -> Result<(), ApplyError>

Tries to apply a reflected value to this value. Read more
Sourceยง

fn reflect_kind(&self) -> ReflectKind

Returns a zero-sized enumeration of โ€œkindsโ€ of type. Read more
Sourceยง

fn reflect_ref(&self) -> ReflectRef<'_>

Returns an immutable enumeration of โ€œkindsโ€ of type. Read more
Sourceยง

fn reflect_mut(&mut self) -> ReflectMut<'_>

Returns a mutable enumeration of โ€œkindsโ€ of type. Read more
Sourceยง

fn reflect_owned(self: Box<Self>) -> ReflectOwned

Returns an owned enumeration of โ€œkindsโ€ of type. Read more
Sourceยง

fn try_into_reflect( self: Box<Self>, ) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>>

Attempts to cast this type to a boxed, fully-reflected value.
Sourceยง

fn try_as_reflect(&self) -> Option<&dyn Reflect>

Attempts to cast this type to a fully-reflected value.
Sourceยง

fn try_as_reflect_mut(&mut self) -> Option<&mut dyn Reflect>

Attempts to cast this type to a mutable, fully-reflected value.
Sourceยง

fn into_partial_reflect(self: Box<Self>) -> Box<dyn PartialReflect>

Casts this type to a boxed, reflected value. Read more
Sourceยง

fn as_partial_reflect(&self) -> &dyn PartialReflect

Casts this type to a reflected value. Read more
Sourceยง

fn as_partial_reflect_mut(&mut self) -> &mut dyn PartialReflect

Casts this type to a mutable, reflected value. Read more
Sourceยง

fn reflect_partial_eq(&self, value: &dyn PartialReflect) -> Option<bool>

Returns a โ€œpartial equalityโ€ comparison result. Read more
Sourceยง

fn apply(&mut self, value: &(dyn PartialReflect + 'static))

Applies a reflected value to this value. Read more
Sourceยง

fn reflect_hash(&self) -> Option<u64>

Returns a hash of the value (which includes the type). Read more
Sourceยง

fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Debug formatter for the value. Read more
Sourceยง

fn serializable(&self) -> Option<Serializable<'_>>

Returns a serializable version of the value. Read more
Sourceยง

fn is_dynamic(&self) -> bool

Indicates whether or not this type is a dynamic type. Read more
Sourceยง

impl Reflect for SpawnKey
where SpawnKey: Any + Send + Sync, String: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Sourceยง

fn into_any(self: Box<Self>) -> Box<dyn Any>

Returns the value as a Box<dyn Any>. Read more
Sourceยง

fn as_any(&self) -> &dyn Any

Returns the value as a &dyn Any. Read more
Sourceยง

fn as_any_mut(&mut self) -> &mut dyn Any

Returns the value as a &mut dyn Any. Read more
Sourceยง

fn into_reflect(self: Box<Self>) -> Box<dyn Reflect>

Casts this type to a boxed, fully-reflected value.
Sourceยง

fn as_reflect(&self) -> &dyn Reflect

Casts this type to a fully-reflected value.
Sourceยง

fn as_reflect_mut(&mut self) -> &mut dyn Reflect

Casts this type to a mutable, fully-reflected value.
Sourceยง

fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>

Performs a type-checked assignment of a reflected value to this value. Read more
Sourceยง

impl TupleStruct for SpawnKey
where SpawnKey: Any + Send + Sync, String: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Sourceยง

fn field(&self, index: usize) -> Option<&dyn PartialReflect>

Returns a reference to the value of the field with index index as a &dyn Reflect.
Sourceยง

fn field_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>

Returns a mutable reference to the value of the field with index index as a &mut dyn Reflect.
Sourceยง

fn field_len(&self) -> usize

Returns the number of fields in the tuple struct.
Sourceยง

fn iter_fields(&self) -> TupleStructFieldIter<'_>

Returns an iterator over the values of the tuple structโ€™s fields.
Sourceยง

fn clone_dynamic(&self) -> DynamicTupleStruct

Clones the struct into a DynamicTupleStruct.
Sourceยง

fn get_represented_tuple_struct_info(&self) -> Option<&'static TupleStructInfo>

Will return None if TypeInfo is not available.
Sourceยง

impl TypePath for SpawnKey
where SpawnKey: Any + Send + Sync,

Sourceยง

fn type_path() -> &'static str

Returns the fully qualified path of the underlying type. Read more
Sourceยง

fn short_type_path() -> &'static str

Returns a short, pretty-print enabled path to the type. Read more
Sourceยง

fn type_ident() -> Option<&'static str>

Returns the name of the type, or None if it is anonymous. Read more
Sourceยง

fn crate_name() -> Option<&'static str>

Returns the name of the crate the type is in, or None if it is anonymous. Read more
Sourceยง

fn module_path() -> Option<&'static str>

Returns the path to the module the type is in, or None if it is anonymous. Read more
Sourceยง

impl Typed for SpawnKey
where SpawnKey: Any + Send + Sync, String: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Sourceยง

fn type_info() -> &'static TypeInfo

Returns the compile-time info for the underlying type.
Sourceยง

impl Eq for SpawnKey

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> Downcast for T
where T: Any,

Sourceยง

fn into_any(self: Box<T>) -> Box<dyn Any>

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.
Sourceยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

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.
Sourceยง

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.
Sourceยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Sourceยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

impl<T> DynEq for T
where T: Any + Eq,

Sourceยง

fn as_any(&self) -> &(dyn Any + 'static)

Casts the type to dyn Any.
Sourceยง

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. Read more
Sourceยง

impl<T> DynHash for T
where T: DynEq + Hash,

Sourceยง

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts the type to dyn Any.
Sourceยง

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.
Sourceยง

impl<T> DynamicTypePath for T
where T: TypePath,

Sourceยง

impl<T> DynamicTyped for T
where T: Typed,

Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> GetPath for T
where T: Reflect + ?Sized,

Sourceยง

fn reflect_path<'p>( &self, path: impl ReflectPath<'p>, ) -> Result<&(dyn PartialReflect + 'static), ReflectPathError<'p>>

Returns a reference to the value specified by path. Read more
Sourceยง

fn reflect_path_mut<'p>( &mut self, path: impl ReflectPath<'p>, ) -> Result<&mut (dyn PartialReflect + 'static), ReflectPathError<'p>>

Returns a mutable reference to the value specified by path. Read more
Sourceยง

fn path<'p, T>( &self, path: impl ReflectPath<'p>, ) -> Result<&T, ReflectPathError<'p>>
where T: Reflect,

Returns a statically typed reference to the value specified by path. Read more
Sourceยง

fn path_mut<'p, T>( &mut self, path: impl ReflectPath<'p>, ) -> Result<&mut T, ReflectPathError<'p>>
where T: Reflect,

Returns a statically typed mutable reference to the value specified by path. Read more
Sourceยง

impl<S> GetTupleStructField for S
where S: TupleStruct,

Sourceยง

fn get_field<T>(&self, index: usize) -> Option<&T>
where T: Reflect,

Returns a reference to the value of the field with index index, downcast to T.
Sourceยง

fn get_field_mut<T>(&mut self, index: usize) -> Option<&mut T>
where T: Reflect,

Returns a mutable reference to the value of the field with index index, downcast to T.
Sourceยง

impl<T> Instrument for T

Sourceยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

impl<T> ConditionalSend for T
where T: Send,

Sourceยง

impl<T> Reflectable for T