Enum buttplug::core::message::serializer::ButtplugSerializerError
source · pub enum ButtplugSerializerError {
JsonValidatorError(String),
JsonSerializerError(String),
BinaryDeserializationError,
TextDeserializationError,
MessageSpecVersionNotReceived,
}Variants§
JsonValidatorError(String)
JsonSerializerError(String)
Serialization error.
BinaryDeserializationError
TextDeserializationError
MessageSpecVersionNotReceived
Trait Implementations§
source§impl Clone for ButtplugSerializerError
impl Clone for ButtplugSerializerError
source§fn clone(&self) -> ButtplugSerializerError
fn clone(&self) -> ButtplugSerializerError
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 ButtplugSerializerError
impl Debug for ButtplugSerializerError
source§impl<'de> Deserialize<'de> for ButtplugSerializerError
impl<'de> Deserialize<'de> for ButtplugSerializerError
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 ButtplugSerializerError
impl Display for ButtplugSerializerError
source§impl Error for ButtplugSerializerError
impl Error for ButtplugSerializerError
1.30.0 · 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 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 for ButtplugSerializerError
impl PartialEq for ButtplugSerializerError
source§fn eq(&self, other: &ButtplugSerializerError) -> bool
fn eq(&self, other: &ButtplugSerializerError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ButtplugSerializerError
impl Serialize for ButtplugSerializerError
impl Eq for ButtplugSerializerError
impl StructuralEq for ButtplugSerializerError
impl StructuralPartialEq for ButtplugSerializerError
Auto Trait Implementations§
impl RefUnwindSafe for ButtplugSerializerError
impl Send for ButtplugSerializerError
impl Sync for ButtplugSerializerError
impl Unpin for ButtplugSerializerError
impl UnwindSafe for ButtplugSerializerError
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<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.