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]
impl RadosError
pub fn new(err: String) -> RadosError
[src]
pub fn new(err: String) -> RadosError
Create a new RadosError with a String message
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Convert a RadosError into a String representation.
Trait Implementations
impl Debug for RadosError
[src]
impl Debug for RadosError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for RadosError
[src]
impl Display for RadosError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for RadosError
[src]
impl StdError for RadosError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>
[src]
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<ParseError> for RadosError
[src]
impl From<ParseError> for RadosError
fn from(err: ParseError) -> RadosError
[src]
fn from(err: ParseError) -> RadosError
Performs the conversion.
impl From<ParseIntError> for RadosError
[src]
impl From<ParseIntError> for RadosError
fn from(err: ParseIntError) -> RadosError
[src]
fn from(err: ParseIntError) -> RadosError
Performs the conversion.
impl From<SerdeJsonError> for RadosError
[src]
impl From<SerdeJsonError> for RadosError
fn from(err: SerdeJsonError) -> RadosError
[src]
fn from(err: SerdeJsonError) -> RadosError
Performs the conversion.
impl From<NulError> for RadosError
[src]
impl From<NulError> for RadosError
fn from(err: NulError) -> RadosError
[src]
fn from(err: NulError) -> RadosError
Performs the conversion.
impl From<FromUtf8Error> for RadosError
[src]
impl From<FromUtf8Error> for RadosError
fn from(err: FromUtf8Error) -> RadosError
[src]
fn from(err: FromUtf8Error) -> RadosError
Performs the conversion.
impl From<IntoStringError> for RadosError
[src]
impl From<IntoStringError> for RadosError
fn from(err: IntoStringError) -> RadosError
[src]
fn from(err: IntoStringError) -> RadosError
Performs the conversion.
impl From<Error> for RadosError
[src]
impl From<Error> for RadosError
fn from(err: Error) -> RadosError
[src]
fn from(err: Error) -> RadosError
Performs the conversion.
Auto Trait Implementations
impl Send for RadosError
impl Send for RadosError
impl Sync for RadosError
impl Sync for RadosError