#[non_exhaustive]pub enum ReceptionStatusValues {
InvalidData,
InvalidMessage,
InvalidContent,
TemporaryError,
PermanentError,
Ok,
}Expand description
How a received message was processed, and what the sender should do about it.
The consequences are normative (S2J schemas/ReceptionStatusValues); see
ReceptionStatusValues::consequence.
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.
InvalidData
“Message not understood (e.g. not valid JSON, no message_id found).”
InvalidMessage
“Message was not according to schema.”
InvalidContent
“Message contents is invalid (e.g. contains a non-existing ID). Somewhat equivalent to BAD_REQUEST in HTTP.”
TemporaryError
“Receiver encountered an error.” The sender should try again.
PermanentError
“Receiver encountered an error which it cannot recover from.” Disconnect.
Ok
“Message processed normally.”
Implementations§
Source§impl ReceptionStatusValues
impl ReceptionStatusValues
Sourcepub const fn consequence(self) -> Consequence
pub const fn consequence(self) -> Consequence
The normative consequence for the sender.
Trait Implementations§
Source§impl Clone for ReceptionStatusValues
impl Clone for ReceptionStatusValues
impl Copy for ReceptionStatusValues
Source§impl Debug for ReceptionStatusValues
impl Debug for ReceptionStatusValues
Source§impl<'de> Deserialize<'de> for ReceptionStatusValues
impl<'de> Deserialize<'de> for ReceptionStatusValues
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 ReceptionStatusValues
Source§impl Hash for ReceptionStatusValues
impl Hash for ReceptionStatusValues
Source§impl Ord for ReceptionStatusValues
impl Ord for ReceptionStatusValues
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 ReceptionStatusValues
impl PartialEq for ReceptionStatusValues
Source§impl PartialOrd for ReceptionStatusValues
impl PartialOrd for ReceptionStatusValues
Source§impl Serialize for ReceptionStatusValues
impl Serialize for ReceptionStatusValues
impl StructuralPartialEq for ReceptionStatusValues
Auto Trait Implementations§
impl Forget for ReceptionStatusValues
impl Freeze for ReceptionStatusValues
impl Move for ReceptionStatusValues
impl RefUnwindSafe for ReceptionStatusValues
impl Send for ReceptionStatusValues
impl Sync for ReceptionStatusValues
impl Unpin for ReceptionStatusValues
impl UnsafeUnpin for ReceptionStatusValues
impl UnwindSafe for ReceptionStatusValues
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.