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