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> From<RawStateBulkEvent<'a>> for RawStateEvent<'a>
impl<'a> From<RawStateBulkEvent<'a>> for RawStateEvent<'a>
source§fn from(r: RawStateBulkEvent<'a>) -> Self
fn from(r: RawStateBulkEvent<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for RawStateEvent<'a>
impl<'a> PartialEq 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> 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<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<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.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.