pub enum SolariErrorCode {
FeatureRequiresPlan,
ConcurrencyLimitExceeded,
PlanLimitExceeded,
BrowserUnhealthy,
Other(String),
}Expand description
Machine-readable error codes the API returns in a { "code": … } body.
Mirrors the TypeScript SolariErrorCode union. Unknown codes are preserved
verbatim in SolariErrorCode::Other rather than dropped — the wire is
allowed to grow new codes without breaking this crate.
Variants§
FeatureRequiresPlan
The org’s plan does not include the requested feature (e.g. captcha).
ConcurrencyLimitExceeded
The org is at its concurrent-session cap.
PlanLimitExceeded
A plan quota (minutes, profiles, …) is exhausted.
BrowserUnhealthy
The acquired browser failed its health check.
Other(String)
A code this crate does not know about.
Implementations§
Source§impl SolariErrorCode
impl SolariErrorCode
pub const FEATURE_REQUIRES_PLAN: &'static str = "FeatureRequiresPlan"
pub const CONCURRENCY_LIMIT_EXCEEDED: &'static str = "ConcurrencyLimitExceeded"
pub const PLAN_LIMIT_EXCEEDED: &'static str = "PlanLimitExceeded"
pub const BROWSER_UNHEALTHY: &'static str = "BrowserUnhealthy"
Trait Implementations§
Source§impl Clone for SolariErrorCode
impl Clone for SolariErrorCode
Source§fn clone(&self) -> SolariErrorCode
fn clone(&self) -> SolariErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SolariErrorCode
impl Debug for SolariErrorCode
Source§impl Display for SolariErrorCode
impl Display for SolariErrorCode
impl Eq for SolariErrorCode
Source§impl From<&str> for SolariErrorCode
impl From<&str> for SolariErrorCode
Source§impl From<String> for SolariErrorCode
impl From<String> for SolariErrorCode
Source§impl PartialEq for SolariErrorCode
impl PartialEq for SolariErrorCode
impl StructuralPartialEq for SolariErrorCode
Auto Trait Implementations§
impl Freeze for SolariErrorCode
impl RefUnwindSafe for SolariErrorCode
impl Send for SolariErrorCode
impl Sync for SolariErrorCode
impl Unpin for SolariErrorCode
impl UnsafeUnpin for SolariErrorCode
impl UnwindSafe for SolariErrorCode
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