pub enum PachaError {
InvalidProtocol(String),
NotFound(String),
ConnectionError(String),
ParseError(String),
IoError(String),
UnsupportedFormat(String),
}Expand description
Pacha protocol error.
Variants§
InvalidProtocol(String)
Invalid protocol (not pacha://)
NotFound(String)
Resource not found
ConnectionError(String)
Connection error
ParseError(String)
Parse error
IoError(String)
IO error
UnsupportedFormat(String)
Unsupported format
Trait Implementations§
Source§impl Clone for PachaError
impl Clone for PachaError
Source§fn clone(&self) -> PachaError
fn clone(&self) -> PachaError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PachaError
impl Debug for PachaError
Source§impl Display for PachaError
impl Display for PachaError
Source§impl Error for PachaError
impl Error for PachaError
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 PartialEq for PachaError
impl PartialEq for PachaError
impl StructuralPartialEq for PachaError
Auto Trait Implementations§
impl Freeze for PachaError
impl RefUnwindSafe for PachaError
impl Send for PachaError
impl Sync for PachaError
impl Unpin for PachaError
impl UnwindSafe for PachaError
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