Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize ConnectionError #370

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Reorganize ConnectionError #370

merged 3 commits into from
Mar 14, 2022

Conversation

de-sh
Copy link
Contributor

@de-sh de-sh commented Mar 13, 2022

Create new variants for ConnectionError instead of repackaging as io::Error

Solves #252

@@ -29,14 +28,17 @@ pub enum ConnectionError {
MqttState(#[from] StateError),
#[error("Timeout")]
Timeout(#[from] Elapsed),
#[error("Packet parsing error: {0}")]
Mqtt4Bytes(mqttbytes::Error),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variant is not being used anywhere, hence decided to get it removed.

#[error("I/O: {0}")]
Io(#[from] io::Error),
#[error("Stream done")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@de-sh de-sh merged commit 970f70b into master Mar 14, 2022
@de-sh de-sh deleted the error branch March 14, 2022 15:02
@de-sh de-sh mentioned this pull request Mar 14, 2022
Closed
carlocorradini pushed a commit to carlocorradini/rumqtt that referenced this pull request Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant