Struct specs::error::WrongGeneration
source · pub struct WrongGeneration {
pub action: &'static str,
pub actual_gen: Generation,
pub entity: Entity,
}
Expand description
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§
source§impl Debug for WrongGeneration
impl Debug for WrongGeneration
source§impl Display for WrongGeneration
impl Display for WrongGeneration
source§impl Error for WrongGeneration
impl Error for WrongGeneration
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<WrongGeneration> for Error
impl From<WrongGeneration> for Error
source§fn from(e: WrongGeneration) -> Self
fn from(e: WrongGeneration) -> Self
Converts to this type from the input type.
source§impl PartialEq<WrongGeneration> for WrongGeneration
impl PartialEq<WrongGeneration> for WrongGeneration
source§fn eq(&self, other: &WrongGeneration) -> bool
fn eq(&self, other: &WrongGeneration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WrongGeneration
impl StructuralEq for WrongGeneration
impl StructuralPartialEq for WrongGeneration
Auto Trait Implementations§
impl RefUnwindSafe for WrongGeneration
impl Send for WrongGeneration
impl Sync for WrongGeneration
impl Unpin for WrongGeneration
impl UnwindSafe for WrongGeneration
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