pub struct RefreshCredentialsReport {
pub credentials_refreshed: bool,
pub uid: u64,
pub auth_result: AuthResult,
}Expand description
v1.4.34: daemon-reload 升级(A’ 方案)的产出。
走一次 remember_login 用缓存凭据刷新 tgtgt,并把同一 authority 响应解析出的
完整 AuthResult 交给上层中央 runtime 发布。磁盘与内存更新必须来自同一响应,
不允许为了取得新 webSig 再发第二次 authority 请求。
Fields§
§credentials_refreshed: bool是否把新凭据成功写回了 credentials 文件
uid: u64服务端返回的新 uid(大部分场景等于旧 uid,拿来 sanity check)
auth_result: AuthResult同一次 authority 成功响应里的完整平台票据。
Trait Implementations§
Source§impl Clone for RefreshCredentialsReport
impl Clone for RefreshCredentialsReport
Source§fn clone(&self) -> RefreshCredentialsReport
fn clone(&self) -> RefreshCredentialsReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RefreshCredentialsReport
impl RefUnwindSafe for RefreshCredentialsReport
impl Send for RefreshCredentialsReport
impl Sync for RefreshCredentialsReport
impl Unpin for RefreshCredentialsReport
impl UnsafeUnpin for RefreshCredentialsReport
impl UnwindSafe for RefreshCredentialsReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more