pub enum TypedStateEvent<T: DeserializeOwned> {
Value(T),
Deleted(T),
}Variants§
Trait Implementations§
Source§impl<T: Clone + DeserializeOwned> Clone for TypedStateEvent<T>
impl<T: Clone + DeserializeOwned> Clone for TypedStateEvent<T>
Source§fn clone(&self) -> TypedStateEvent<T>
fn clone(&self) -> TypedStateEvent<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + DeserializeOwned> Debug for TypedStateEvent<T>
impl<T: Debug + DeserializeOwned> Debug for TypedStateEvent<T>
Source§impl<T: DeserializeOwned> From<TypedKeyValuePair<T>> for TypedStateEvent<T>
impl<T: DeserializeOwned> From<TypedKeyValuePair<T>> for TypedStateEvent<T>
Source§fn from(kvp: TypedKeyValuePair<T>) -> Self
fn from(kvp: TypedKeyValuePair<T>) -> Self
Converts to this type from the input type.
Source§impl<T: DeserializeOwned> From<TypedStateEvent<T>> for Option<T>
impl<T: DeserializeOwned> From<TypedStateEvent<T>> for Option<T>
Source§fn from(e: TypedStateEvent<T>) -> Self
fn from(e: TypedStateEvent<T>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq + DeserializeOwned> PartialEq for TypedStateEvent<T>
impl<T: PartialEq + DeserializeOwned> PartialEq for TypedStateEvent<T>
Source§impl<T: DeserializeOwned + TryFrom<Value, Error = Error>> TryFrom<StateEvent> for TypedStateEvent<T>
impl<T: DeserializeOwned + TryFrom<Value, Error = Error>> TryFrom<StateEvent> for TypedStateEvent<T>
impl<T: Eq + DeserializeOwned> Eq for TypedStateEvent<T>
impl<T: DeserializeOwned> StructuralPartialEq for TypedStateEvent<T>
Auto Trait Implementations§
impl<T> Freeze for TypedStateEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for TypedStateEvent<T>where
T: RefUnwindSafe,
impl<T> Send for TypedStateEvent<T>where
T: Send,
impl<T> Sync for TypedStateEvent<T>where
T: Sync,
impl<T> Unpin for TypedStateEvent<T>where
T: Unpin,
impl<T> UnwindSafe for TypedStateEvent<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.