Enum ceph_rust::error::RadosError
[−]
[src]
pub enum RadosError { FromUtf8Error(FromUtf8Error), NulError(NulError), Error(String), IoError(Error), IntoStringError(IntoStringError), ParseError(ParseError), }
Custom error handling for the library
Variants
FromUtf8Error(FromUtf8Error)
NulError(NulError)
Error(String)
IoError(Error)
IntoStringError(IntoStringError)
ParseError(ParseError)
Methods
impl RadosError
[src]
fn new(err: String) -> RadosError
Create a new RadosError with a String message
fn to_string(&self) -> String
Convert a RadosError into a String representation.
Trait Implementations
impl Debug for RadosError
[src]
impl Display for RadosError
[src]
impl StdError for RadosError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<ParseError> for RadosError
[src]
fn from(err: ParseError) -> RadosError
Performs the conversion.
impl From<NulError> for RadosError
[src]
fn from(err: NulError) -> RadosError
Performs the conversion.
impl From<FromUtf8Error> for RadosError
[src]
fn from(err: FromUtf8Error) -> RadosError
Performs the conversion.
impl From<IntoStringError> for RadosError
[src]
fn from(err: IntoStringError) -> RadosError
Performs the conversion.
impl From<Error> for RadosError
[src]
fn from(err: Error) -> RadosError
Performs the conversion.