pub enum StateMapError {
Frozen,
Unfrozen,
FetchUpdateError(String),
KeyNotFound,
EmptyDiff,
UnknownError(String),
}Expand description
StateMapError can describe certain situations that might arise upon doing illegal operations
pushing new items to the StateMap after its frozen will trigger in StateMapError::Frozen.
Variants§
Trait Implementations§
Source§impl Debug for StateMapError
impl Debug for StateMapError
Source§impl Display for StateMapError
impl Display for StateMapError
Source§impl Error for StateMapError
impl Error for StateMapError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<StateMapError> for TcpStateServerError
impl From<StateMapError> for TcpStateServerError
Source§fn from(source: StateMapError) -> Self
fn from(source: StateMapError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StateMapError
impl PartialEq for StateMapError
impl Eq for StateMapError
impl StructuralPartialEq for StateMapError
Auto Trait Implementations§
impl Freeze for StateMapError
impl RefUnwindSafe for StateMapError
impl Send for StateMapError
impl Sync for StateMapError
impl Unpin for StateMapError
impl UnwindSafe for StateMapError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more