pub struct Hysteresis<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub hysteresis_delay: Option<f64>,
pub hysteresis_gradient: Option<f64>,
pub hysteresis_high: Option<f64>,
pub hysteresis_low: Option<f64>,
}Fields§
§custom_data: Option<CustomDataType>§hysteresis_delay: Option<f64>Delay in seconds, once grid parameter within HysteresisLow and HysteresisHigh, for the EV to return to normal operation after a grid event.
hysteresis_gradient: Option<f64>Set default rate of change (ramp rate %/s) for the EV to return to normal operation after a grid event
hysteresis_high: Option<f64>High value for return to normal operation after a grid event, in absolute value. This value adopts the same unit as defined by yUnit
hysteresis_low: Option<f64>Low value for return to normal operation after a grid event, in absolute value. This value adopts the same unit as defined by yUnit
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for Hysteresis<CustomDataType>
impl<CustomDataType: Clone> Clone for Hysteresis<CustomDataType>
Source§fn clone(&self) -> Hysteresis<CustomDataType>
fn clone(&self) -> Hysteresis<CustomDataType>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CustomDataType: Debug> Debug for Hysteresis<CustomDataType>
impl<CustomDataType: Debug> Debug for Hysteresis<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for Hysteresis<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for Hysteresis<CustomDataType>where
CustomDataType: Deserialize<'de>,
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<CustomDataType: PartialEq> PartialEq for Hysteresis<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for Hysteresis<CustomDataType>
Source§impl<CustomDataType> Serialize for Hysteresis<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for Hysteresis<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for Hysteresis<CustomDataType>
Source§impl<CustomDataType> Validate for Hysteresis<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for Hysteresis<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for Hysteresis<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for Hysteresis<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for Hysteresis<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for Hysteresis<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for Hysteresis<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for Hysteresis<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for Hysteresis<CustomDataType>where
CustomDataType: UnwindSafe,
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