#[non_exhaustive]pub enum CemEvent {
Show 20 variants
Negotiated {
version: ProtocolVersion,
profile: WireProfile,
},
ResourceDescribed(Box<ResourceManagerDetails>),
Ready {
control_type: ControlType,
},
Deselected,
Description {
kind: MessageKind,
message: Message,
},
Status {
kind: MessageKind,
message: Message,
},
Measurement(Box<PowerMeasurement>),
Forecast(Box<PowerForecast>),
InstructionStatus {
instruction_id: Id,
status: InstructionStatus,
},
TimerFinished {
actuator: Option<Id>,
timer: Id,
finished_at: Timestamp,
},
DescriptionActivated {
kind: MessageKind,
},
Revoked {
object_type: RevokableObjects,
object_id: Id,
},
Acked(MessageHandle),
Nacked {
handle: MessageHandle,
status: ReceptionStatusValues,
diagnostic: Option<String>,
consequence: Consequence,
},
AckTimedOut(MessageHandle),
UnmatchedAck {
subject: Id,
status: ReceptionStatusValues,
},
SessionRequested {
request: SessionRequestType,
diagnostic: Option<String>,
},
Refused {
kind: Option<MessageKind>,
status: ReceptionStatusValues,
report: Report,
},
Warnings {
kind: MessageKind,
report: Report,
},
Closed {
reason: CloseReason,
reconnect_after: Option<Duration>,
},
}Expand description
Something a Customer Energy Manager’s application needs to know about.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Negotiated
A protocol version was agreed.
Fields
version: ProtocolVersionThe version string that was chosen.
profile: WireProfileThe wire shape it selects.
ResourceDescribed(Box<ResourceManagerDetails>)
The resource described itself. Now a control type can be selected.
Ready
The control type this manager selected is active.
Fields
control_type: ControlTypeWhat is active.
Deselected
The control type was deactivated.
Description
The resource published a description or a constraint.
Status
The resource reported a status.
Measurement(Box<PowerMeasurement>)
A measurement arrived.
Forecast(Box<PowerForecast>)
A forecast arrived.
InstructionStatus
What became of an instruction this manager sent.
TimerFinished
A timer finished, or was reported as finishing.
Fields
DescriptionActivated
A description that was published for the future is now in force.
Fields
kind: MessageKindWhich message became effective.
Revoked
The resource withdrew an object.
Acked(MessageHandle)
Something we sent was accepted.
Nacked
Something we sent was refused.
Fields
handle: MessageHandleWhat was refused.
status: ReceptionStatusValuesHow.
consequence: ConsequenceWhat the standard says to do about it.
AckTimedOut(MessageHandle)
Nothing came back in time.
UnmatchedAck
An acknowledgement arrived for something we never sent.
SessionRequested
The resource asked to end or restart the session.
Fields
request: SessionRequestTypeReconnect or terminate.
Refused
An inbound message was refused.
Fields
kind: Option<MessageKind>What it claimed to be.
status: ReceptionStatusValuesHow it was refused.
Warnings
An inbound message was accepted but is suspect.
Closed
The session ended.
Fields
reason: CloseReasonWhy.