pub enum PullRequestError {
Show 13 variants
Disabled,
ConsentRequired,
InvalidConfiguration(String),
ProviderMismatch,
UnsupportedProvider,
Cancelled,
Timeout,
OutputLimitExceeded,
RateLimited {
status: u16,
metadata: PullRequestRateLimit,
},
Api {
status: u16,
message: String,
},
MalformedResponse(String),
Transport(String),
CacheUnavailable,
}Expand description
Pull-request provider failure.
Variants§
Disabled
Provider use was not explicitly enabled.
ConsentRequired
The caller did not consent to remote access.
InvalidConfiguration(String)
Configuration violates URL or budget policy.
ProviderMismatch
Request coordinates do not match the configured provider.
UnsupportedProvider
The selected provider contract is represented but intentionally unsupported.
Cancelled
Operation was cancelled.
Timeout
Provider request exceeded its timeout.
OutputLimitExceeded
Response exceeded the configured byte budget.
RateLimited
Provider requested caller-managed backoff.
Fields
§
metadata: PullRequestRateLimitProvider rate-limit metadata.
Api
Provider returned an unsuccessful API response.
MalformedResponse(String)
Provider returned malformed or contract-incompatible JSON.
Transport(String)
Injected transport failed.
Internal cache mutex was poisoned.
Trait Implementations§
Source§impl Clone for PullRequestError
impl Clone for PullRequestError
Source§fn clone(&self) -> PullRequestError
fn clone(&self) -> PullRequestError
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 PullRequestError
impl Debug for PullRequestError
Source§impl Display for PullRequestError
impl Display for PullRequestError
impl Eq for PullRequestError
Source§impl Error for PullRequestError
impl Error for PullRequestError
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 PartialEq for PullRequestError
impl PartialEq for PullRequestError
impl StructuralPartialEq for PullRequestError
Auto Trait Implementations§
impl Freeze for PullRequestError
impl RefUnwindSafe for PullRequestError
impl Send for PullRequestError
impl Sync for PullRequestError
impl Unpin for PullRequestError
impl UnsafeUnpin for PullRequestError
impl UnwindSafe for PullRequestError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.