Struct sep2_client::device::SEDevice
source · pub struct SEDevice {
pub lfdi: HexBinary160,
pub sfdi: SFDIType,
pub edev: EndDevice,
pub device_categories: DeviceCategoryType,
pub appliance_load_reduction: Option<ApplianceLoadReduction>,
pub applied_target_reduction: Option<AppliedTargetReduction>,
pub duty_cycle: Option<DutyCycle>,
pub offset: Option<Offset>,
pub override_duration: Option<Uint16>,
pub set_point: Option<SetPoint>,
}
Expand description
A representation of an IEEE 2030.5 End Device.
DRLC fields allow for the scheduler to create DrResponse
instances with the correct information
Fields§
§lfdi: HexBinary160
§sfdi: SFDIType
§edev: EndDevice
§device_categories: DeviceCategoryType
§appliance_load_reduction: Option<ApplianceLoadReduction>
Available on crate feature
§drlc
only.applied_target_reduction: Option<AppliedTargetReduction>
Available on crate feature
§drlc
only.duty_cycle: Option<DutyCycle>
Available on crate feature
§drlc
only.offset: Option<Offset>
Available on crate feature
§drlc
only.override_duration: Option<Uint16>
Available on crate feature
§drlc
only.set_point: Option<SetPoint>
Available on crate feature
drlc
only.Implementations§
source§impl SEDevice
impl SEDevice
sourcepub fn new_from_cert(
cert_path: impl AsRef<Path>,
device_category: DeviceCategoryType
) -> Result<Self>
pub fn new_from_cert( cert_path: impl AsRef<Path>, device_category: DeviceCategoryType ) -> Result<Self>
Create a new SEDevice representation, using a certificate at the given path to generate the SFDI & LFDI and a bitmap representation of the device’s category
sourcepub fn new(
lfdi: HexBinary160,
sfdi: SFDIType,
device_category: DeviceCategoryType
) -> Self
pub fn new( lfdi: HexBinary160, sfdi: SFDIType, device_category: DeviceCategoryType ) -> Self
Create a new SEDevice representation with the given LFDI, SFDI and category
Auto Trait Implementations§
impl RefUnwindSafe for SEDevice
impl Send for SEDevice
impl Sync for SEDevice
impl Unpin for SEDevice
impl UnwindSafe for SEDevice
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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