pub struct TransformerStatus {
pub voltage_transformer_connected: bool,
pub current_transformer_connected: bool,
}
Fields§
§voltage_transformer_connected: bool
§current_transformer_connected: bool
Trait Implementations§
source§impl Clone for TransformerStatus
impl Clone for TransformerStatus
source§fn clone(&self) -> TransformerStatus
fn clone(&self) -> TransformerStatus
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 Debug for TransformerStatus
impl Debug for TransformerStatus
source§impl Default for TransformerStatus
impl Default for TransformerStatus
source§fn default() -> TransformerStatus
fn default() -> TransformerStatus
Returns the “default value” for a type. Read more
source§impl FromByteSlice for TransformerStatus
impl FromByteSlice for TransformerStatus
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> TransformerStatus
fn from_le_byte_slice(bytes: &[u8]) -> TransformerStatus
Deserialize the implementing type from a byte slice.
source§impl Hash for TransformerStatus
impl Hash for TransformerStatus
source§impl PartialEq for TransformerStatus
impl PartialEq for TransformerStatus
source§fn eq(&self, other: &TransformerStatus) -> bool
fn eq(&self, other: &TransformerStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TransformerStatus
impl Eq for TransformerStatus
impl StructuralPartialEq for TransformerStatus
Auto Trait Implementations§
impl RefUnwindSafe for TransformerStatus
impl Send for TransformerStatus
impl Sync for TransformerStatus
impl Unpin for TransformerStatus
impl UnwindSafe for TransformerStatus
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