pub struct ProviderError {
pub kind: ErrorKind,
pub message: String,
pub retry_after: Option<Duration>,
}Expand description
Structured provider error (plans/0008 §2): the protocol v1.1
data.kind taxonomy carried from the wire to the UI instead of a
bare string. Unknown or absent kinds degrade to Other, which
renders exactly like the old unstructured toast.
Fields§
§kind: ErrorKind§message: String§retry_after: Option<Duration>rate_limited: the provider’s advertised backoff, if any.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderError
impl Clone for ProviderError
Source§impl Debug for ProviderError
impl Debug for ProviderError
Source§impl Display for ProviderError
impl Display for ProviderError
impl Eq for ProviderError
Source§impl Error for ProviderError
impl Error for ProviderError
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<&str> for ProviderError
impl From<&str> for ProviderError
Source§impl From<String> for ProviderError
impl From<String> for ProviderError
Source§impl PartialEq for ProviderError
impl PartialEq for ProviderError
impl StructuralPartialEq for ProviderError
Auto Trait Implementations§
impl Forget for ProviderError
impl Freeze for ProviderError
impl Move for ProviderError
impl RefUnwindSafe for ProviderError
impl Send for ProviderError
impl Sync for ProviderError
impl Unpin for ProviderError
impl UnsafeUnpin for ProviderError
impl UnwindSafe for ProviderError
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