pub enum SlotError {
InvalidIndex,
GenerationMismatch {
expected: u32,
actual: u32,
},
InvalidState {
expected: SlotState,
actual: SlotState,
},
}Expand description
Errors returned by slot transitions.
Variants§
Trait Implementations§
impl Copy for SlotError
impl Eq for SlotError
impl StructuralPartialEq for SlotError
Auto Trait Implementations§
impl Freeze for SlotError
impl RefUnwindSafe for SlotError
impl Send for SlotError
impl Sync for SlotError
impl Unpin for SlotError
impl UnwindSafe for SlotError
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