pub struct WrongGeneration {
pub action: &'static str,
pub actual_gen: Generation,
pub entity: Entity,
}Expand description
Wrong generation error.
Fields§
§action: &'static strThe action that failed because of the wrong generation.
actual_gen: GenerationThe actual generation of this id.
entity: EntityThe 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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl From<WrongGeneration> for Error
impl From<WrongGeneration> for Error
Source§fn from(e: WrongGeneration) -> Error
fn from(e: WrongGeneration) -> Error
Converts to this type from the input type.
Source§impl PartialEq for WrongGeneration
impl PartialEq for WrongGeneration
impl Eq for WrongGeneration
impl StructuralPartialEq for WrongGeneration
Auto Trait Implementations§
impl Freeze for WrongGeneration
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