gluster

Enum GlusterError

Source
pub enum GlusterError {
    AddrParseError(AddrParseError),
    FromUtf8Error(FromUtf8Error),
    IoError(Error),
    NoVolumesPresent,
    ParseError(ParseError),
    ParseBoolErr(ParseBoolError),
    ParseIntError(ParseIntError),
    RegexError(Error),
    SerdeError(Error),
}
Expand description

Custom error handling for the library

Variants§

§

AddrParseError(AddrParseError)

§

FromUtf8Error(FromUtf8Error)

§

IoError(Error)

§

NoVolumesPresent

§

ParseError(ParseError)

§

ParseBoolErr(ParseBoolError)

§

ParseIntError(ParseIntError)

§

RegexError(Error)

§

SerdeError(Error)

Implementations§

Source§

impl GlusterError

Source

pub fn new(err: String) -> GlusterError

Create a new GlusterError with a String message

Source

pub fn to_string(&self) -> String

Convert a GlusterError into a String representation.

Trait Implementations§

Source§

impl Debug for GlusterError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AddrParseError> for GlusterError

Source§

fn from(err: AddrParseError) -> GlusterError

Converts to this type from the input type.
Source§

impl From<Error> for GlusterError

Source§

fn from(err: Error) -> GlusterError

Converts to this type from the input type.
Source§

impl From<Error> for GlusterError

Source§

fn from(err: Error) -> GlusterError

Converts to this type from the input type.
Source§

impl From<Error> for GlusterError

Source§

fn from(err: Error) -> GlusterError

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for GlusterError

Source§

fn from(err: FromUtf8Error) -> GlusterError

Converts to this type from the input type.
Source§

impl From<ParseBoolError> for GlusterError

Source§

fn from(err: ParseBoolError) -> GlusterError

Converts to this type from the input type.
Source§

impl From<ParseError> for GlusterError

Source§

fn from(err: ParseError) -> GlusterError

Converts to this type from the input type.
Source§

impl From<ParseIntError> for GlusterError

Source§

fn from(err: ParseIntError) -> GlusterError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.