pub struct AuthExpired {
pub status: u16,
}Expand description
Typed error surfaced when the API rejects the bearer token (401/403).
Carried inside anyhow::Error by every Client method so the
orchestrator can downcast_ref::<AuthExpired>() and decide to
re-run OAuth instead of just printing the failure. Before this
existed /codingplan would emit “already logged in” + “claim failed
— run atomcode login again” and leave the user to do it manually,
even though /login would have fixed it in one step.
The Display text matches the legacy error string verbatim so
rendered reports stay byte-identical when no recovery happens
(e.g. running atomcode against a server we never reach for
re-auth, or a non-interactive scripted invocation).
Fields§
§status: u16Trait Implementations§
Source§impl Debug for AuthExpired
impl Debug for AuthExpired
Source§impl Display for AuthExpired
impl Display for AuthExpired
Source§impl Error for AuthExpired
impl Error for AuthExpired
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AuthExpired
impl RefUnwindSafe for AuthExpired
impl Send for AuthExpired
impl Sync for AuthExpired
impl Unpin for AuthExpired
impl UnsafeUnpin for AuthExpired
impl UnwindSafe for AuthExpired
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.