#[non_exhaustive]pub enum SessionErrorMessage {
IncompatibleS2MessageVersions,
IncompatibleCommunicationProtocols,
NoLongerPaired,
ParsingError,
Other,
}Expand description
Why a session could not be initiated.
S2C-OAS session-init/CommunicationDetailsErrorMessage.
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.
IncompatibleS2MessageVersions
No S2 JSON message version in common.
IncompatibleCommunicationProtocols
No transport in common.
NoLongerPaired
The pairing is gone; a human must pair the devices again.
ParsingError
The body was not understood.
Other
Anything else.
Trait Implementations§
Source§impl Clone for SessionErrorMessage
impl Clone for SessionErrorMessage
Source§fn clone(&self) -> SessionErrorMessage
fn clone(&self) -> SessionErrorMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionErrorMessage
Source§impl Debug for SessionErrorMessage
impl Debug for SessionErrorMessage
Source§impl<'de> Deserialize<'de> for SessionErrorMessage
impl<'de> Deserialize<'de> for SessionErrorMessage
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 SessionErrorMessage
Source§impl PartialEq for SessionErrorMessage
impl PartialEq for SessionErrorMessage
Source§impl Serialize for SessionErrorMessage
impl Serialize for SessionErrorMessage
impl StructuralPartialEq for SessionErrorMessage
Auto Trait Implementations§
impl Freeze for SessionErrorMessage
impl RefUnwindSafe for SessionErrorMessage
impl Send for SessionErrorMessage
impl Sync for SessionErrorMessage
impl Unpin for SessionErrorMessage
impl UnsafeUnpin for SessionErrorMessage
impl UnwindSafe for SessionErrorMessage
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,
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.