Enum buttplug::core::errors::ButtplugMessageError
source · pub enum ButtplugMessageError {
UnexpectedMessageType(String),
VersionError(String, String, String),
MessageConversionError(String),
InvalidMessageContents(String),
UnhandledMessage(String),
ValidationError(String),
MessageSerializationError(ButtplugSerializerError),
UntypedDeserializedError(String),
}Variants§
UnexpectedMessageType(String)
Got unexpected message type: {0}
VersionError(String, String, String)
{0} {1} cannot be converted to {2}
MessageConversionError(String)
Message conversion error: {0}
InvalidMessageContents(String)
Invalid message contents: {0}
UnhandledMessage(String)
Unhandled message type: {0}
ValidationError(String)
Message validation error(s): {0}
MessageSerializationError(ButtplugSerializerError)
Message serialization error
UntypedDeserializedError(String)
Untyped Deserialized Error: {0}
Trait Implementations§
source§impl Clone for ButtplugMessageError
impl Clone for ButtplugMessageError
source§fn clone(&self) -> ButtplugMessageError
fn clone(&self) -> ButtplugMessageError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ButtplugMessageError
impl Debug for ButtplugMessageError
source§impl<'de> Deserialize<'de> for ButtplugMessageError
impl<'de> Deserialize<'de> for ButtplugMessageError
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
source§impl Display for ButtplugMessageError
impl Display for ButtplugMessageError
source§impl Error for ButtplugMessageError
impl Error for ButtplugMessageError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T> From<ButtplugMessageError> for BoxFuture<'static, Result<T, ButtplugError>>where
T: Send + 'static,
impl<T> From<ButtplugMessageError> for BoxFuture<'static, Result<T, ButtplugError>>where T: Send + 'static,
Message errors occur when a message is somehow malformed on creation, or received unexpectedly by a client or server.
source§fn from(
err: ButtplugMessageError
) -> BoxFuture<'static, Result<T, ButtplugError>>
fn from( err: ButtplugMessageError ) -> BoxFuture<'static, Result<T, ButtplugError>>
Converts to this type from the input type.
source§impl From<ButtplugMessageError> for ButtplugError
impl From<ButtplugMessageError> for ButtplugError
source§fn from(source: ButtplugMessageError) -> Self
fn from(source: ButtplugMessageError) -> Self
Converts to this type from the input type.
source§impl From<ButtplugSerializerError> for ButtplugMessageError
impl From<ButtplugSerializerError> for ButtplugMessageError
source§fn from(source: ButtplugSerializerError) -> Self
fn from(source: ButtplugSerializerError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ButtplugMessageError> for ButtplugMessageError
impl PartialEq<ButtplugMessageError> for ButtplugMessageError
source§fn eq(&self, other: &ButtplugMessageError) -> bool
fn eq(&self, other: &ButtplugMessageError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ButtplugMessageError
impl Serialize for ButtplugMessageError
impl Eq for ButtplugMessageError
impl StructuralEq for ButtplugMessageError
impl StructuralPartialEq for ButtplugMessageError
Auto Trait Implementations§
impl RefUnwindSafe for ButtplugMessageError
impl Send for ButtplugMessageError
impl Sync for ButtplugMessageError
impl Unpin for ButtplugMessageError
impl UnwindSafe for ButtplugMessageError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.