Struct eva_common::events::RawStateEvent
source · pub struct RawStateEvent<'a> {
pub status: ItemStatus,
pub value: ValueOption<'a>,
pub force: bool,
}Expand description
Submitted by services via the bus for local items
Fields§
§status: ItemStatus§value: ValueOption<'a>§force: boolImplementations§
source§impl<'a> RawStateEvent<'a>
impl<'a> RawStateEvent<'a>
pub fn new(status: ItemStatus, value: &'a Value) -> Self
pub fn new0(status: ItemStatus) -> Self
pub fn force(self) -> Self
Trait Implementations§
source§impl<'a> Clone for RawStateEvent<'a>
impl<'a> Clone for RawStateEvent<'a>
source§fn clone(&self) -> RawStateEvent<'a>
fn clone(&self) -> RawStateEvent<'a>
Returns a copy 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<'a> Debug for RawStateEvent<'a>
impl<'a> Debug for RawStateEvent<'a>
source§impl<'a> PartialEq<RawStateEvent<'a>> for RawStateEvent<'a>
impl<'a> PartialEq<RawStateEvent<'a>> for RawStateEvent<'a>
source§fn eq(&self, other: &RawStateEvent<'a>) -> bool
fn eq(&self, other: &RawStateEvent<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> Serialize for RawStateEvent<'a>
impl<'a> Serialize for RawStateEvent<'a>
impl<'a> Eq for RawStateEvent<'a>
impl<'a> StructuralEq for RawStateEvent<'a>
impl<'a> StructuralPartialEq for RawStateEvent<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RawStateEvent<'a>
impl<'a> Send for RawStateEvent<'a>
impl<'a> Sync for RawStateEvent<'a>
impl<'a> Unpin for RawStateEvent<'a>
impl<'a> UnwindSafe for RawStateEvent<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.