pub enum GenerationStage {
Percent100,
Percent60,
Percent30,
Percent0,
}Expand description
Allowed generation output as a percentage of reference power.
Variants§
Percent100
All generation contacts inactive.
Percent60
Only S1 active.
Percent30
Only S2 active.
Percent0
Only W3 active.
Implementations§
Source§impl GenerationStage
impl GenerationStage
Sourcepub fn from_percent(percent: f64) -> Result<Self, RelayError>
pub fn from_percent(percent: f64) -> Result<Self, RelayError>
Select an exact relay stage. Other values, including nonfinite values, fail.
Trait Implementations§
Source§impl Clone for GenerationStage
impl Clone for GenerationStage
impl Copy for GenerationStage
Source§impl Debug for GenerationStage
impl Debug for GenerationStage
impl Eq for GenerationStage
Source§impl PartialEq for GenerationStage
impl PartialEq for GenerationStage
impl StructuralPartialEq for GenerationStage
Auto Trait Implementations§
impl Freeze for GenerationStage
impl RefUnwindSafe for GenerationStage
impl Send for GenerationStage
impl Sync for GenerationStage
impl Unpin for GenerationStage
impl UnsafeUnpin for GenerationStage
impl UnwindSafe for GenerationStage
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