pub enum StateError {
Io(Error),
InvalidState,
Unsolicited(u16),
AwaitPingResp,
WrongPacket,
CollisionTimeout,
EmptySubscription,
Deserialization(Error),
ConnectionAborted,
SubFail {
reason: SubscribeReasonCode,
},
}
Expand description
Errors during state handling
Variants§
Io(Error)
Io Error while state is passed to network
InvalidState
Invalid state for a given operation
Unsolicited(u16)
Received a packet (ack) which isn’t asked for
AwaitPingResp
Last pingreq isn’t acked
WrongPacket
Received a wrong packet while waiting for another packet
CollisionTimeout
EmptySubscription
Deserialization(Error)
ConnectionAborted
SubFail
Fields
§
reason: SubscribeReasonCode
Trait Implementations§
Source§impl Debug for StateError
impl Debug for StateError
Source§impl Display for StateError
impl Display for StateError
Source§impl Error for StateError
impl Error for StateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for StateError
impl From<Error> for StateError
Source§impl From<Error> for StateError
impl From<Error> for StateError
Source§impl From<StateError> for ConnectionError
impl From<StateError> for ConnectionError
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StateError
impl !RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl !UnwindSafe for StateError
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