pub struct RotationHandle { /* private fields */ }Expand description
Handle to a running credential rotation background thread. Dropping the handle signals the thread to stop.
R6-M22: exposes a failed flag that the background thread sets when it
gives up after MAX_RETRY_FAILURES consecutive rotation attempts.
Callers should check has_failed() on session end so operators learn
that the subprocess was running against a stale credential file; the
previous behaviour was to silently stop the rotation thread and leave
the main thread unaware that scoping had effectively lapsed.
Implementations§
Source§impl RotationHandle
impl RotationHandle
Sourcepub fn has_failed(&self) -> bool
pub fn has_failed(&self) -> bool
Returns true if the background rotation thread gave up after the configured retry ceiling, meaning the credential file has not been updated since the first failure and the subprocess has been running with stale credentials.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RotationHandle
impl !RefUnwindSafe for RotationHandle
impl Send for RotationHandle
impl Sync for RotationHandle
impl Unpin for RotationHandle
impl UnsafeUnpin for RotationHandle
impl !UnwindSafe for RotationHandle
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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.