#[non_exhaustive]pub enum RmEvent {
Show 15 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,
},
OutboundWarnings {
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.
OutboundWarnings
A message this side sent had warnings of its own.
validate_outbound refuses an outbound message with an error at the call site;
this is what it has to say about the rest. A resource publishing a description
s2-python will refuse (S2-ACT-001), or a manager instructing a transition its
own picture of the timers says is blocked (S2-INST-005), learns it here rather
than from a peer. Separate from Warnings because the two mean
opposite things: one is a peer worth watching, the other is this side.
Closed
The session ended.
Fields
reason: CloseReasonWhy.