pub struct StateResidency {
pub entity_index: Option<i32>,
pub state_index: Option<i32>,
pub total_time_in_state_ms: Option<u64>,
pub total_state_entry_count: Option<u64>,
pub last_entry_timestamp_ms: Option<u64>,
}Fields§
§entity_index: Option<i32>Index corresponding to PowerEntityState.entity_index
state_index: Option<i32>Index corresponding to PowerEntityState.state_index
total_time_in_state_ms: Option<u64>Time since boot that this entity has been in this state
total_state_entry_count: Option<u64>Total number of times since boot that the entity has entered this state
last_entry_timestamp_ms: Option<u64>Timestamp of the last time the entity entered this state
Implementations§
Source§impl StateResidency
impl StateResidency
Sourcepub fn entity_index(&self) -> i32
pub fn entity_index(&self) -> i32
Returns the value of entity_index, or the default value if entity_index is unset.
Sourcepub fn state_index(&self) -> i32
pub fn state_index(&self) -> i32
Returns the value of state_index, or the default value if state_index is unset.
Sourcepub fn total_time_in_state_ms(&self) -> u64
pub fn total_time_in_state_ms(&self) -> u64
Returns the value of total_time_in_state_ms, or the default value if total_time_in_state_ms is unset.
Sourcepub fn total_state_entry_count(&self) -> u64
pub fn total_state_entry_count(&self) -> u64
Returns the value of total_state_entry_count, or the default value if total_state_entry_count is unset.
Sourcepub fn last_entry_timestamp_ms(&self) -> u64
pub fn last_entry_timestamp_ms(&self) -> u64
Returns the value of last_entry_timestamp_ms, or the default value if last_entry_timestamp_ms is unset.
Trait Implementations§
Source§impl Clone for StateResidency
impl Clone for StateResidency
Source§fn clone(&self) -> StateResidency
fn clone(&self) -> StateResidency
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StateResidency
impl Debug for StateResidency
Source§impl Default for StateResidency
impl Default for StateResidency
Source§fn default() -> StateResidency
fn default() -> StateResidency
Source§impl Message for StateResidency
impl Message for StateResidency
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for StateResidency
impl PartialEq for StateResidency
impl Copy for StateResidency
impl StructuralPartialEq for StateResidency
Auto Trait Implementations§
impl Freeze for StateResidency
impl RefUnwindSafe for StateResidency
impl Send for StateResidency
impl Sync for StateResidency
impl Unpin for StateResidency
impl UnwindSafe for StateResidency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].