#[non_exhaustive]pub enum RmEvent {
Show 14 variants
Negotiated {
version: ProtocolVersion,
profile: WireProfile,
},
Ready {
control_type: ControlType,
},
Deselected,
Instruction(Box<Instructed>),
DescriptionActivated {
kind: MessageKind,
},
Acked(MessageHandle),
Nacked {
handle: MessageHandle,
status: ReceptionStatusValues,
diagnostic: Option<String>,
consequence: Consequence,
},
AckTimedOut(MessageHandle),
UnmatchedAck {
subject: Id,
status: ReceptionStatusValues,
},
Revoked {
object_type: RevokableObjects,
object_id: Id,
},
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 Resource 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.
Ready
The CEM activated a control type. Send the system description now.
Fields
control_type: ControlTypeWhat it activated.
Deselected
The CEM deactivated the control type.
Instruction(Box<Instructed>)
An instruction arrived, was acknowledged, and resolved.
DescriptionActivated
A description that was published for the future is now in force.
Fields
kind: MessageKindWhich message became effective.
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 for something we sent.
UnmatchedAck
An acknowledgement arrived for something we never sent, or had given up on.
Revoked
The CEM withdrew an object.
SessionRequested
The CEM asked to end or restart the session.
Fields
request: SessionRequestTypeReconnect or terminate.
Refused
An inbound message was refused, and why.
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.