Enum ceph::error::RadosError
[−]
[src]
pub enum RadosError { FromUtf8Error(FromUtf8Error), NulError(NulError), Error(String), IoError(Error), IntoStringError(IntoStringError), ParseIntError(ParseIntError), ParseError(ParseError), SerdeError(SerdeJsonError), MinVersion(CephVersion, CephVersion), Parse(String), }
Custom error handling for the library
Variants
FromUtf8Error(FromUtf8Error)
NulError(NulError)
Error(String)
IoError(Error)
IntoStringError(IntoStringError)
ParseIntError(ParseIntError)
ParseError(ParseError)
SerdeError(SerdeJsonError)
MinVersion(CephVersion, CephVersion)
This should be the minimum version and the current version
Parse(String)
Methods
impl RadosError
[src]
fn new(err: String) -> RadosError
[src]
Create a new RadosError with a String message
fn to_string(&self) -> String
[src]
Convert a RadosError into a String representation.
Trait Implementations
impl Debug for RadosError
[src]
impl Display for RadosError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for RadosError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more
impl From<ParseError> for RadosError
[src]
fn from(err: ParseError) -> RadosError
[src]
Performs the conversion.
impl From<ParseIntError> for RadosError
[src]
fn from(err: ParseIntError) -> RadosError
[src]
Performs the conversion.
impl From<SerdeJsonError> for RadosError
[src]
fn from(err: SerdeJsonError) -> RadosError
[src]
Performs the conversion.
impl From<NulError> for RadosError
[src]
fn from(err: NulError) -> RadosError
[src]
Performs the conversion.
impl From<FromUtf8Error> for RadosError
[src]
fn from(err: FromUtf8Error) -> RadosError
[src]
Performs the conversion.
impl From<IntoStringError> for RadosError
[src]
fn from(err: IntoStringError) -> RadosError
[src]
Performs the conversion.
impl From<Error> for RadosError
[src]
fn from(err: Error) -> RadosError
[src]
Performs the conversion.