Enum otrr::UserMessage
source · pub enum UserMessage {
None,
Plaintext(Vec<u8>),
WarningUnencrypted(Vec<u8>),
Error(Vec<u8>),
Reset(InstanceTag),
ConfidentialSessionStarted(InstanceTag),
Confidential(InstanceTag, Vec<u8>, Vec<TLV>),
ConfidentialSessionFinished(InstanceTag, Vec<u8>),
SMPSucceeded(InstanceTag),
SMPFailed(InstanceTag),
}
Expand description
UserMessage
represents the resulting Message intended for the messaging client, possibly
containing content relevant to display to the user.
Variants§
None
Nothing received that is relevant to report/transfer back to the messaging client.
Plaintext(Vec<u8>)
Message for user received over open, plaintext transport.
WarningUnencrypted(Vec<u8>)
While encrypted sessions are present or the policy requires encryption, a message is received in plaintext. The client must know such that it can issue a warning.
Error(Vec<u8>)
OTR error message received.
Reset(InstanceTag)
Message state reset to “plaintext”. (by user action)
ConfidentialSessionStarted(InstanceTag)
Confidential session started, transitioned to “encrypted” state.
Confidential(InstanceTag, Vec<u8>, Vec<TLV>)
Message for user received over confidential OTR transport.
ConfidentialSessionFinished(InstanceTag, Vec<u8>)
Confidential session ended, transitioned to “finished” state. (Session ended by other party.)
SMPSucceeded(InstanceTag)
SMP process succeeded, signaling the client that authenticity is verified.
SMPFailed(InstanceTag)
SMP process failed, signaling the client that some final concluion was reached.