pub enum PiperError {
InternalNullByte(NulError),
NullPointer,
GenericError,
UnknownError(c_int),
Io(Error),
}Expand description
Global error type for all errors that Piper can return.
Variants§
InternalNullByte(NulError)
A string passed to Piper included a internal \0 (NUL) character.
NullPointer
Piper returned a null pointer.
GenericError
Piper returned a generic error code.
UnknownError(c_int)
Piper returned a unknown error code.
Io(Error)
IO error
Trait Implementations§
Source§impl Debug for PiperError
impl Debug for PiperError
Source§impl Display for PiperError
impl Display for PiperError
Source§impl Error for PiperError
impl Error for PiperError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for PiperError
impl From<Error> for PiperError
Source§fn from(err: Error) -> PiperError
fn from(err: Error) -> PiperError
Converts to this type from the input type.
Source§impl From<NulError> for PiperError
impl From<NulError> for PiperError
Source§fn from(err: NulError) -> PiperError
fn from(err: NulError) -> PiperError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PiperError
impl !UnwindSafe for PiperError
impl Forget for PiperError
impl Freeze for PiperError
impl Move for PiperError
impl Send for PiperError
impl Sync for PiperError
impl Unpin for PiperError
impl UnsafeUnpin for PiperError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more