Enum specs::storage::InsertResult
[−]
[src]
pub enum InsertResult<T> { Inserted, Updated(T), EntityIsDead(T), }
The status of an insert()
ion into a storage.
Variants
Inserted
The value was inserted and there was no value before
Updated(T)
The value was updated an already inserted value the value returned is the old value
EntityIsDead(T)
The value failed to insert because the entity was invalid
Trait Implementations
impl<T: Debug> Debug for InsertResult<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for InsertResult<T>
[src]
fn eq(&self, __arg_0: &InsertResult<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InsertResult<T>) -> bool
[src]
This method tests for !=
.
Auto Trait Implementations
impl<T> Send for InsertResult<T> where
T: Send,
T: Send,
impl<T> Sync for InsertResult<T> where
T: Sync,
T: Sync,