Struct amethyst::ecs::error::WrongGeneration [−]
pub struct WrongGeneration {
pub action: &'static str,
pub actual_gen: Generation,
pub entity: Entity,
}Wrong generation error.
Fields
action: &'static str
The action that failed because of the wrong generation.
actual_gen: Generation
The actual generation of this id.
entity: Entity
The entity that has been passed, containing the id and the invalid generation.
Trait Implementations
impl PartialEq<WrongGeneration> for WrongGeneration
impl PartialEq<WrongGeneration> for WrongGenerationfn eq(&self, other: &WrongGeneration) -> bool
fn eq(&self, other: &WrongGeneration) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &WrongGeneration) -> bool
fn ne(&self, other: &WrongGeneration) -> boolThis method tests for !=.
impl Error for WrongGeneration
impl Error for WrongGenerationfn description(&self) -> &str
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<WrongGeneration> for Error
impl From<WrongGeneration> for Errorfn from(e: WrongGeneration) -> Error
fn from(e: WrongGeneration) -> ErrorPerforms the conversion.
impl Display for WrongGeneration
impl Display for WrongGenerationfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Eq for WrongGeneration
impl Eq for WrongGenerationimpl Debug for WrongGeneration
impl Debug for WrongGenerationAuto Trait Implementations
impl Send for WrongGeneration
impl Send for WrongGenerationimpl Sync for WrongGeneration
impl Sync for WrongGeneration