pub fn explain(self) -> Error {
        let text = self.1.explain();
        match self.0 {
            MountError::Io(e) => Error(self.1, e, text),
            MountError::Remount(RemountError::Io(msg, io_err)) => {
                Error(self.1, io_err, format!("{}, {}", msg, text))
            },
            MountError::Remount(err) => {
                let text = format!("{}, {}", &err, text);
                let err = Box::new(err);
                Error(self.1,
                      io::Error::new(io::ErrorKind::InvalidData, err),
                      text)
            },
        }
    }
/// Convert error to the one providing extra useful information
Convert error to the one providing extra useful information
Convert error to the one providing extra useful information
pub fn explain(self) -> Error {
        let text = self.1.explain();
        match self.0 {
            MountError::Io(e) => Error(self.1, e, text),
            MountError::Remount(RemountError::Io(msg, io_err)) => {
                Error(self.1, io_err, format!("{}, {}", msg, text))
            },
            MountError::Remount(err) => {
                let text = format!("{}, {}", &err, text);
                let err = Box::new(err);
                Error(self.1,
                      io::Error::new(io::ErrorKind::InvalidData, err),
                      text)
            },
        }
    }
pub fn explain ( self ) -> Error { let text = self . 1 . explain ( ) ; match self . 0 { MountError :: Io ( e ) => Error ( self . 1 , e , text ) , MountError :: Remount ( RemountError :: Io ( msg , io_err ) ) => { Error ( self . 1 , io_err , format ! ( " " msg text ) ) } , MountError :: Remount ( err ) => { let text = format ! ( " " err text ) ; let err = Box :: new ( err ) ; Error ( self . 1 , io :: Error :: new ( io :: ErrorKind :: InvalidData , err ) , text ) } , } }
Convert error to the one providing extra useful information
Convert error to the one providing extra useful information
self
self