Struct rusty_leveldb::Status
[−]
[src]
pub struct Status {
pub code: StatusCode,
pub err: String,
}Status encapsulates a StatusCode and an error message. It can be displayed, and also
implements Error.
Fields
code: StatusCode
err: String
Methods
impl Status[src]
pub fn new(code: StatusCode, msg: &str) -> Status[src]
Trait Implementations
impl Clone for Status[src]
fn clone(&self) -> Status[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Status[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for Status[src]
fn eq(&self, __arg_0: &Status) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Status) -> bool[src]
This method tests for !=.
impl Default for Status[src]
impl Display for Status[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Error for Status[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<Error> for Status[src]
impl<T> From<PoisonError<T>> for Status[src]
fn from(_: PoisonError<T>) -> Status[src]
Performs the conversion.