Enum qecs_core::IdActivationError [] [src]

pub enum IdActivationError<Slot> {
    MaximumIdCountReached(usize),
    AlreadyActivated,
    SlotOccupied(Slot),
}

Variants

MaximumIdCountReached(usize)

The id couldn't be activated because the maximum id count this id-type or this id-manager allows was reached.

TODO: naming?

AlreadyActivated

The id couldn't be activated because it already is.

SlotOccupied(Slot)

The id couldn't be activated because the internal slot (in the id-manager) it would use is already occupied.

This can be the case for id-types which have an generation attached (SafeIndex).

Example: You try to activate a = {idx:200, gen:5}, but b = {idx:200, gen:4} is already active. If you want to force as activation, you first need to invalidate b.

Trait Implementations

impl<Slot: Eq> Eq for IdActivationError<Slot>
[src]

impl<Slot: PartialEq> PartialEq for IdActivationError<Slot>
[src]

fn eq(&self, __arg_0: &IdActivationError<Slot>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &IdActivationError<Slot>) -> bool

This method tests for !=.

impl<Slot: Debug> Debug for IdActivationError<Slot>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.