pub struct InsertError<K1, K2, V> {
pub error: ErrorKind,
pub keys: (K1, K2),
pub value: V,
}
Expand description
The error returned by insert
method (and also
try_insert
method) when there is no way to distinguish
how given value with key #1 and key #2 should be inserted. It is also part of the
TryInsertError
enum which is returned by try_insert
method
of DHashMap
. For more information about error kinds look at ErrorKind
enum.
Contains the ErrorKind
enum, the provided keys and value that were not inserted.
These returned keys and value can be used for another purpose.
Fields§
§error: ErrorKind
A view into an error kind returned by entry
,
insert
, try_insert
methods of the DHashMap
.
It is part of the EntryError
structure, InsertError
structure and TryInsertError
enum. Explains entry
, insert
,
try_insert
methods fail. For more information about error
kind look at ErrorKind
enum.
keys: (K1, K2)
The provided keys that were returned because of error. For more information about
error kind look at ErrorKind
enum.
value: V
The value which was not inserted because of the error. For more information about error
kind look at ErrorKind
enum.