#[non_exhaustive]pub enum ChannelType {
General,
ControlledLoad,
FeedIn,
}
Expand description
Meter channel type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
General
General channel provides continuous power - all of your appliances and lights are attached to this channel
ControlledLoad
Controlled load channels are only on for a limited time during the day (usually when the load on the network is low, or generation is high) - you may have your hot water system attached to this channel
FeedIn
Feed in channel sends power back to the grid - you will have these types of channels if you have solar or batteries
Trait Implementations§
Source§impl Clone for ChannelType
impl Clone for ChannelType
Source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a duplicate 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 ChannelType
impl Debug for ChannelType
Source§impl<'de> Deserialize<'de> for ChannelType
impl<'de> Deserialize<'de> for ChannelType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ChannelType
impl Display for ChannelType
Source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
impl Eq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Freeze for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
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