pub enum FlexSign {
Magnitude,
AsOrdered,
}Expand description
How DeliveredFlexPower and PowerDeficiency are signed on the wire. There is no default: the UFTP specification does not say, so the contract must.
Variants§
Magnitude
Both are magnitudes, never negative, as the table of UFTP 3.1 § 2.6.2 prints them.
AsOrdered
Both carry the sign of OrderedFlexPower, as the uftp crate documents them (its spec
note SS-25): an order of −300 kW of which 280 kW was delivered is −280 000 W delivered
and −20 000 W deficiency.
Trait Implementations§
impl Copy for FlexSign
impl Eq for FlexSign
impl StructuralPartialEq for FlexSign
Auto Trait Implementations§
impl Forget for FlexSign
impl Freeze for FlexSign
impl Move for FlexSign
impl RefUnwindSafe for FlexSign
impl Send for FlexSign
impl Sync for FlexSign
impl Unpin for FlexSign
impl UnsafeUnpin for FlexSign
impl UnwindSafe for FlexSign
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