#[non_exhaustive]pub enum RevokableObjects {
Show 13 variants
PebcPowerConstraints,
PebcEnergyConstraint,
PebcInstruction,
PpbcPowerProfileDefinition,
PpbcScheduleInstruction,
PpbcStartInterruptionInstruction,
PpbcEndInterruptionInstruction,
OmbcSystemDescription,
OmbcInstruction,
FrbcSystemDescription,
FrbcInstruction,
DdbcSystemDescription,
DdbcInstruction,
}Expand description
The kinds of object a RevokeObject message can withdraw.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PebcPowerConstraints
A PEBC.PowerConstraints.
PebcEnergyConstraint
A PEBC.EnergyConstraint.
PebcInstruction
A PEBC.Instruction.
PpbcPowerProfileDefinition
A PPBC.PowerProfileDefinition.
PpbcScheduleInstruction
A PPBC.ScheduleInstruction.
PpbcStartInterruptionInstruction
A PPBC.StartInterruptionInstruction.
PpbcEndInterruptionInstruction
A PPBC.EndInterruptionInstruction.
OmbcSystemDescription
An OMBC.SystemDescription.
OmbcInstruction
An OMBC.Instruction.
FrbcSystemDescription
An FRBC.SystemDescription.
FrbcInstruction
An FRBC.Instruction.
DdbcSystemDescription
A DDBC.SystemDescription.
DdbcInstruction
A DDBC.Instruction.
Implementations§
Source§impl RevokableObjects
impl RevokableObjects
Sourcepub const fn owner(self) -> EnergyManagementRole
pub const fn owner(self) -> EnergyManagementRole
Which role owns this kind of object, and may therefore revoke it.
The S2 Connect state table lists RevokeObject only in the RM’s column, but this
enum contains every instruction type, which only a CEM sends. The mismatch is
erratum E6; both roles are accepted and a mismatch is a warning.
Sourcepub const fn control_type(self) -> ControlType
pub const fn control_type(self) -> ControlType
The control type this object belongs to.
Trait Implementations§
Source§impl Clone for RevokableObjects
impl Clone for RevokableObjects
Source§fn clone(&self) -> RevokableObjects
fn clone(&self) -> RevokableObjects
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 moreimpl Copy for RevokableObjects
Source§impl Debug for RevokableObjects
impl Debug for RevokableObjects
Source§impl<'de> Deserialize<'de> for RevokableObjects
impl<'de> Deserialize<'de> for RevokableObjects
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
impl Eq for RevokableObjects
Source§impl Hash for RevokableObjects
impl Hash for RevokableObjects
Source§impl Ord for RevokableObjects
impl Ord for RevokableObjects
Source§fn cmp(&self, other: &RevokableObjects) -> Ordering
fn cmp(&self, other: &RevokableObjects) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RevokableObjects
impl PartialEq for RevokableObjects
Source§impl PartialOrd for RevokableObjects
impl PartialOrd for RevokableObjects
Source§impl Serialize for RevokableObjects
impl Serialize for RevokableObjects
impl StructuralPartialEq for RevokableObjects
Auto Trait Implementations§
impl Freeze for RevokableObjects
impl RefUnwindSafe for RevokableObjects
impl Send for RevokableObjects
impl Sync for RevokableObjects
impl Unpin for RevokableObjects
impl UnsafeUnpin for RevokableObjects
impl UnwindSafe for RevokableObjects
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.