pub enum SecretCleanup {
KeychainRemoved,
KeychainFailed(String),
OAuthDirRemoved(PathBuf),
OAuthDirHistoryKept {
dir: PathBuf,
history: PathBuf,
},
OAuthDirAbsent(PathBuf),
OAuthDirSkipped {
dir: PathBuf,
reason: String,
},
OAuthDirFailed {
dir: PathBuf,
error: String,
},
NoOp,
}Expand description
What cleanup_account_secrets did, for callers/tests to assert on.
Logging already happened inside the function.
Variants§
KeychainRemoved
Keychain entry removed (or was already absent — idempotent).
KeychainFailed(String)
Keychain delete failed (logged as warn; account delete proceeds).
OAuthDirRemoved(PathBuf)
OAuth config dir tree removed.
OAuthDirHistoryKept
Everything in the OAuth config dir removed except the provider’s conversation history subdirectory, which was kept (so the dir itself remains).
OAuthDirAbsent(PathBuf)
OAuth config dir was already gone — nothing to remove.
OAuthDirSkipped
OAuth config dir NOT removed: it does not resolve inside the
agentmux identities root (e.g. the legacy ~/.claude migration
account), or the root itself could not be resolved/canonicalized.
OAuthDirFailed
OAuth config dir removal failed (fs error; logged as warn).
NoOp
Secret backend holds no agentmux-owned on-host state.
Implementations§
Source§impl SecretCleanup
impl SecretCleanup
Trait Implementations§
Source§impl Debug for SecretCleanup
impl Debug for SecretCleanup
impl Eq for SecretCleanup
Source§impl PartialEq for SecretCleanup
impl PartialEq for SecretCleanup
impl StructuralPartialEq for SecretCleanup
Auto Trait Implementations§
impl Freeze for SecretCleanup
impl RefUnwindSafe for SecretCleanup
impl Send for SecretCleanup
impl Sync for SecretCleanup
impl Unpin for SecretCleanup
impl UnsafeUnpin for SecretCleanup
impl UnwindSafe for SecretCleanup
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more