#[non_exhaustive]pub enum PluginError {
Show 14 variants
AuthenticationFailed(String),
PermissionDenied(String),
ApiError(String),
InvalidConfig(String),
PipelineNotFound(String),
ProviderNotSupported(String),
NetworkError(String),
SerializationError(String),
DatabaseError(String),
NotSupported(String),
Internal(String),
RateLimited {
message: String,
retry_after: Option<Duration>,
},
ServiceUnavailable {
message: String,
retry_after: Option<Duration>,
},
Tls(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AuthenticationFailed(String)
PermissionDenied(String)
ApiError(String)
InvalidConfig(String)
PipelineNotFound(String)
ProviderNotSupported(String)
NetworkError(String)
SerializationError(String)
DatabaseError(String)
NotSupported(String)
Internal(String)
RateLimited
Tls(String)
Implementations§
Source§impl PluginError
impl PluginError
pub fn is_transient(&self) -> bool
pub fn retry_after(&self) -> Option<Duration>
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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()
Auto Trait Implementations§
impl Freeze for PluginError
impl RefUnwindSafe for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin for PluginError
impl UnsafeUnpin for PluginError
impl UnwindSafe for PluginError
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