Struct matrix_sdk_base::SessionTokens
source · [−]Expand description
The mutable parts of the session: the access token and optional refresh token.
Fields
access_token: String
The access token used for this session.
refresh_token: Option<String>
The token used for refreshing the access token, if any.
Implementations
sourceimpl SessionTokens
impl SessionTokens
sourcepub fn update_with_refresh_response(&mut self, response: &Response)
pub fn update_with_refresh_response(&mut self, response: &Response)
Update this SessionTokens
with the values found in the given response.
Trait Implementations
sourceimpl Clone for SessionTokens
impl Clone for SessionTokens
sourcefn clone(&self) -> SessionTokens
fn clone(&self) -> SessionTokens
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SessionTokens
impl Send for SessionTokens
impl Sync for SessionTokens
impl Unpin for SessionTokens
impl UnwindSafe for SessionTokens
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more