pub enum PerfgateError {
Validation(ValidationError),
Stats(StatsError),
Adapter(AdapterError),
Config(ConfigValidationError),
Io(IoError),
Paired(PairedError),
Auth(AuthError),
}Variants§
Validation(ValidationError)
Stats(StatsError)
Adapter(AdapterError)
Config(ConfigValidationError)
Io(IoError)
Paired(PairedError)
Auth(AuthError)
Implementations§
Source§impl PerfgateError
impl PerfgateError
pub fn category(&self) -> ErrorCategory
pub fn is_recoverable(&self) -> bool
pub fn exit_code(&self) -> i32
Trait Implementations§
Source§impl Debug for PerfgateError
impl Debug for PerfgateError
Source§impl Display for PerfgateError
impl Display for PerfgateError
Source§impl Error for PerfgateError
impl Error for PerfgateError
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<AdapterError> for PerfgateError
impl From<AdapterError> for PerfgateError
Source§fn from(source: AdapterError) -> PerfgateError
fn from(source: AdapterError) -> PerfgateError
Converts to this type from the input type.
Source§impl From<AuthError> for PerfgateError
impl From<AuthError> for PerfgateError
Source§fn from(source: AuthError) -> PerfgateError
fn from(source: AuthError) -> PerfgateError
Converts to this type from the input type.
Source§impl From<ConfigValidationError> for PerfgateError
impl From<ConfigValidationError> for PerfgateError
Source§fn from(source: ConfigValidationError) -> PerfgateError
fn from(source: ConfigValidationError) -> PerfgateError
Converts to this type from the input type.
Source§impl From<IoError> for PerfgateError
impl From<IoError> for PerfgateError
Source§fn from(source: IoError) -> PerfgateError
fn from(source: IoError) -> PerfgateError
Converts to this type from the input type.
Source§impl From<PairedError> for PerfgateError
impl From<PairedError> for PerfgateError
Source§fn from(source: PairedError) -> PerfgateError
fn from(source: PairedError) -> PerfgateError
Converts to this type from the input type.
Source§impl From<StatsError> for PerfgateError
impl From<StatsError> for PerfgateError
Source§fn from(source: StatsError) -> PerfgateError
fn from(source: StatsError) -> PerfgateError
Converts to this type from the input type.
Source§impl From<ValidationError> for PerfgateError
impl From<ValidationError> for PerfgateError
Source§fn from(source: ValidationError) -> PerfgateError
fn from(source: ValidationError) -> PerfgateError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PerfgateError
impl RefUnwindSafe for PerfgateError
impl Send for PerfgateError
impl Sync for PerfgateError
impl Unpin for PerfgateError
impl UnsafeUnpin for PerfgateError
impl UnwindSafe for PerfgateError
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