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
sourceimpl Debug for WrongGeneration
impl Debug for WrongGeneration
sourceimpl Display for WrongGeneration
impl Display for WrongGeneration
sourceimpl Error for WrongGeneration
impl Error for WrongGeneration
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<WrongGeneration> for Error
impl From<WrongGeneration> for Error
sourcefn from(e: WrongGeneration) -> Self
fn from(e: WrongGeneration) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<WrongGeneration> for WrongGeneration
impl PartialEq<WrongGeneration> for WrongGeneration
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &WrongGeneration) -> bool
fn ne(&self, other: &WrongGeneration) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more