Struct specs::error::WrongGeneration
[−]
[src]
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 From<WrongGeneration> for Error
[src]
fn from(e: WrongGeneration) -> Self
[src]
Performs the conversion.
impl Debug for WrongGeneration
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for WrongGeneration
[src]
fn eq(&self, __arg_0: &WrongGeneration) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WrongGeneration) -> bool
[src]
This method tests for !=
.
impl Eq for WrongGeneration
[src]
impl Display for WrongGeneration
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
Formats the value using the given formatter. Read more