Enum buttplug::core::errors::ButtplugHandshakeError
source · pub enum ButtplugHandshakeError {
UnexpectedHandshakeMessageReceived(String),
RequestServerInfoExpected,
HandshakeAlreadyHappened,
MessageSpecVersionMismatch(ButtplugMessageSpecVersion, ButtplugMessageSpecVersion),
UntypedDeserializedError(String),
}
Variants§
UnexpectedHandshakeMessageReceived(String)
Expected either a ServerInfo or Error message, received {0}
RequestServerInfoExpected
Expected a RequestServerInfo message to start connection. Message either not received or wrong message received.
HandshakeAlreadyHappened
Handshake already happened, cannot run handshake again.
MessageSpecVersionMismatch(ButtplugMessageSpecVersion, ButtplugMessageSpecVersion)
Server spec version ({0}) must be equal or greater than client version ({1})
UntypedDeserializedError(String)
Untyped Deserialized Error: {0}
Trait Implementations§
source§impl Clone for ButtplugHandshakeError
impl Clone for ButtplugHandshakeError
source§fn clone(&self) -> ButtplugHandshakeError
fn clone(&self) -> ButtplugHandshakeError
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 ButtplugHandshakeError
impl Debug for ButtplugHandshakeError
source§impl<'de> Deserialize<'de> for ButtplugHandshakeError
impl<'de> Deserialize<'de> for ButtplugHandshakeError
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 ButtplugHandshakeError
impl Display for ButtplugHandshakeError
source§impl Error for ButtplugHandshakeError
impl Error for ButtplugHandshakeError
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<ButtplugHandshakeError> for ButtplugError
impl From<ButtplugHandshakeError> for ButtplugError
source§fn from(source: ButtplugHandshakeError) -> Self
fn from(source: ButtplugHandshakeError) -> Self
Converts to this type from the input type.
source§impl<T> From<ButtplugHandshakeError> for BoxFuture<'static, Result<T, ButtplugError>>where
T: Send + 'static,
impl<T> From<ButtplugHandshakeError> for BoxFuture<'static, Result<T, ButtplugError>>where
T: Send + 'static,
Handshake errors occur while a client is connecting to a server. This usually involves protocol handshake errors. For connector errors (i.e. when a remote network connection cannot be established), see [crate::connector::ButtplugConnectorError].
source§fn from(
err: ButtplugHandshakeError
) -> BoxFuture<'static, Result<T, ButtplugError>>
fn from( err: ButtplugHandshakeError ) -> BoxFuture<'static, Result<T, ButtplugError>>
Converts to this type from the input type.
source§impl PartialEq for ButtplugHandshakeError
impl PartialEq for ButtplugHandshakeError
source§fn eq(&self, other: &ButtplugHandshakeError) -> bool
fn eq(&self, other: &ButtplugHandshakeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ButtplugHandshakeError
impl Serialize for ButtplugHandshakeError
impl Eq for ButtplugHandshakeError
impl StructuralPartialEq for ButtplugHandshakeError
Auto Trait Implementations§
impl Freeze for ButtplugHandshakeError
impl RefUnwindSafe for ButtplugHandshakeError
impl Send for ButtplugHandshakeError
impl Sync for ButtplugHandshakeError
impl Unpin for ButtplugHandshakeError
impl UnwindSafe for ButtplugHandshakeError
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