Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rust Openssl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public Repositories
Rust Openssl
Commits
556f3716
Commit
556f3716
authored
7 years ago
by
Andy Gauge
Browse files
Options
Downloads
Patches
Plain Diff
Error documentation improvement
parent
05ad0053
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
openssl/src/error.rs
+20
-0
20 additions, 0 deletions
openssl/src/error.rs
with
20 additions
and
0 deletions
openssl/src/error.rs
+
20
−
0
View file @
556f3716
//! Errors returned by OpenSSL library.
//!
//! OpenSSL errors are stored in an `ErrorStack`. Most methods in the crate
/// returns a `Result<T, ErrorStack>` type.
//!
//! # Examples
//!
//! ```
//! use openssl::error::ErrorStack;
//! use openssl::bn::BigNum;
//!
//! let an_error = BigNum::from_dec_str("Cannot parse letters");
//! match an_error {
//! Ok(_) => _,
//! Err(e) => println!("Parsing Error: {:?}", e),
//! }
//! ```
use
libc
::{
c_ulong
,
c_char
,
c_int
};
use
std
::
fmt
;
use
std
::
error
;
...
...
@@ -9,6 +26,9 @@ use std::borrow::Cow;
use
ffi
;
/// Collection of [`Error`]s from OpenSSL.
///
/// [`Error`]: struct.Error.html
#[derive(Debug,
Clone)]
pub
struct
ErrorStack
(
Vec
<
Error
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment