pub struct XaiOAuthRevocation { /* private fields */ }Expand description
Files retired from an active xAI OAuth epoch before a mode switch commits.
Unix hides original names behind private tombstones immediately. Windows relies on the lifecycle lock, then deletes exact handles after commit. A failed config mutation restores or retains the prior files; a successful mutation removes them.
Implementations§
Source§impl XaiOAuthRevocation
impl XaiOAuthRevocation
Sourcepub fn rollback(self, store: &XaiOAuthCredentialStore) -> Result<()>
pub fn rollback(self, store: &XaiOAuthCredentialStore) -> Result<()>
Restore the old epoch after a config mutation fails. Restoration is fail-closed: an unexpected replacement at an original name is never overwritten.
Sourcepub fn commit(self, store: &XaiOAuthCredentialStore) -> Result<usize>
pub fn commit(self, store: &XaiOAuthCredentialStore) -> Result<usize>
Permanently remove retired bytes after the replacement config commits.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XaiOAuthRevocation
impl RefUnwindSafe for XaiOAuthRevocation
impl Send for XaiOAuthRevocation
impl Sync for XaiOAuthRevocation
impl Unpin for XaiOAuthRevocation
impl UnsafeUnpin for XaiOAuthRevocation
impl UnwindSafe for XaiOAuthRevocation
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