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)>
Returns 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 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more