pub struct ServiceRejected {
pub service: Service,
pub code: i32,
}Expand description
A verified response carried a non-zero service code. The request reached the service, so this error never shows that an operation was not submitted.
Fields§
§service: ServiceResponse boundary that reported the code.
code: i32Signed code returned by that boundary.
Implementations§
Source§impl ServiceRejected
impl ServiceRejected
Sourcepub const SESSION_REJECTED: i32 = -13
pub const SESSION_REJECTED: i32 = -13
Code the session boundaries return when they no longer accept the account’s credentials.
Sourcepub fn find(error: &Error) -> Option<&Self>
pub fn find(error: &Error) -> Option<&Self>
Find this error anywhere in an error and its causes.
Sourcepub fn is_session_rejected(&self) -> bool
pub fn is_session_rejected(&self) -> bool
True when a session boundary returned Self::SESSION_REJECTED. The
account needs a new login or renewal; repeating the request cannot help.
The same code from another boundary, such as the CDN, is not included.
Trait Implementations§
Source§impl Clone for ServiceRejected
impl Clone for ServiceRejected
impl Copy for ServiceRejected
Source§impl Debug for ServiceRejected
impl Debug for ServiceRejected
Source§impl Display for ServiceRejected
impl Display for ServiceRejected
impl Eq for ServiceRejected
Source§impl Error for ServiceRejected
impl Error for ServiceRejected
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 ServiceRejected
impl PartialEq for ServiceRejected
impl StructuralPartialEq for ServiceRejected
Auto Trait Implementations§
impl Forget for ServiceRejected
impl Freeze for ServiceRejected
impl Move for ServiceRejected
impl RefUnwindSafe for ServiceRejected
impl Send for ServiceRejected
impl Sync for ServiceRejected
impl Unpin for ServiceRejected
impl UnsafeUnpin for ServiceRejected
impl UnwindSafe for ServiceRejected
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
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.