rust-lang / rust-lang/ssh2-rs

Make ssh2::Error an Enum for all Possible errors from libssh2

Open
#140 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
566
Forks
163
Avg merge
4h 51m
Merged PRs (30d)
2

Description

My use case for this is that I want to give my own useful error messages for the possible errors. Right now I have to look up what each error code means in the documentation of libssh2.

To me it seems a lot nicer to have an Enum so rust can help with covering all errors.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining ssh2::Error and the libssh2 error-code documentation to identify the complete set of possible errors. Done means the errors are represented by a Rust enum so callers can match each case and provide their own messages without consulting libssh2 documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.