Enum SpawnerError
#[non_exhaustive]pub enum SpawnerError {
InvalidKey(String),
Duplicate(SpawnerEntry),
}Expand description
A list of spawners could not be made.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidKey(String)
The key is not a namespaced identifier.
Duplicate(SpawnerEntry)
The entry is in the list twice.
Trait Implementations§
§impl Clone for SpawnerError
impl Clone for SpawnerError
§fn clone(&self) -> SpawnerError
fn clone(&self) -> SpawnerError
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 more§impl Debug for SpawnerError
impl Debug for SpawnerError
§impl Display for SpawnerError
impl Display for SpawnerError
impl Eq for SpawnerError
§impl Error for SpawnerError
impl Error for SpawnerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for SpawnerError
impl PartialEq for SpawnerError
impl StructuralPartialEq for SpawnerError
Auto Trait Implementations§
impl Freeze for SpawnerError
impl RefUnwindSafe for SpawnerError
impl Send for SpawnerError
impl Sync for SpawnerError
impl Unpin for SpawnerError
impl UnsafeUnpin for SpawnerError
impl UnwindSafe for SpawnerError
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