pub enum PhaseConnection {
Single {
phase: Phase,
},
Three,
Switchable {
phase: Phase,
},
}Expand description
How many outer conductors an asset is wired to, and which.
Variants§
Single
Connected to exactly one outer conductor.
VDE-AR-N 4100 lets a single-phase device up to 4,6 kVA be connected this way, and lets the network operator name the conductor.
Three
Connected to all three outer conductors, drawing symmetrically.
Switchable
Able to switch between one and three phases at runtime (most modern
wallboxes). phase names the conductor used while in single-phase mode.
Implementations§
Source§impl PhaseConnection
impl PhaseConnection
Sourcepub const fn is_switchable(&self) -> bool
pub const fn is_switchable(&self) -> bool
Whether the device can change mode at all.
Sourcepub const fn default_mode(&self) -> PhaseMode
pub const fn default_mode(&self) -> PhaseMode
The mode this wiring is in when nothing has said otherwise.
A switchable device starts three-phase: it is the mode that charges a car fastest, and the one a wallbox powers up in.
Sourcepub const fn clamp_mode(&self, mode: PhaseMode) -> PhaseMode
pub const fn clamp_mode(&self, mode: PhaseMode) -> PhaseMode
mode if this wiring supports it, otherwise the one it is stuck in.
Sourcepub const fn single_phase_conductor(&self) -> Option<Phase>
pub const fn single_phase_conductor(&self) -> Option<Phase>
The conductor used in single-phase mode, if there is one.
Trait Implementations§
Source§impl Clone for PhaseConnection
impl Clone for PhaseConnection
Source§fn clone(&self) -> PhaseConnection
fn clone(&self) -> PhaseConnection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more