pub enum PimError {
Crypto(String),
Protocol(String),
Transport(String),
Routing(String),
Tun(String),
Gateway(String),
Config(String),
Io(Error),
}Expand description
Cross-crate error wrapper used by higher-level components.
Variants§
Crypto(String)
Cryptographic operation failed.
Protocol(String)
Protocol parsing or validation failed.
Transport(String)
Transport-layer operation failed.
Routing(String)
Routing-layer operation failed.
Tun(String)
TUN interface operation failed.
Gateway(String)
Gateway or NAT operation failed.
Config(String)
Configuration parsing or validation failed.
Io(Error)
Filesystem or other I/O failed.
Trait Implementations§
Source§impl Error for PimError
impl Error for PimError
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()
Auto Trait Implementations§
impl Freeze for PimError
impl !RefUnwindSafe for PimError
impl Send for PimError
impl Sync for PimError
impl Unpin for PimError
impl UnsafeUnpin for PimError
impl !UnwindSafe for PimError
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