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: ItemStatusvalue: ValueOption<'a>force: boolImplementations
sourceimpl<'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
sourceimpl<'a> Clone for RawStateEvent<'a>
impl<'a> Clone for RawStateEvent<'a>
sourcefn clone(&self) -> RawStateEvent<'a>
fn clone(&self) -> RawStateEvent<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'a> Debug for RawStateEvent<'a>
impl<'a> Debug for RawStateEvent<'a>
sourceimpl<'a> PartialEq<RawStateEvent<'a>> for RawStateEvent<'a>
impl<'a> PartialEq<RawStateEvent<'a>> for RawStateEvent<'a>
sourcefn eq(&self, other: &RawStateEvent<'a>) -> bool
fn eq(&self, other: &RawStateEvent<'a>) -> bool
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.