pub struct DeviceBoundSession<'a> { /* private fields */ }Expand description
A device bound session.
Implementations§
Source§impl<'a> DeviceBoundSession<'a>
impl<'a> DeviceBoundSession<'a>
Sourcepub fn builder(
key: DeviceBoundSessionKey<'a>,
refresh_url: impl Into<Cow<'a, str>>,
inclusion_rules: DeviceBoundSessionInclusionRules<'a>,
cookie_cravings: Vec<DeviceBoundSessionCookieCraving<'a>>,
expiry_date: TimeSinceEpoch,
allowed_refresh_initiators: Vec<Cow<'a, str>>,
) -> DeviceBoundSessionBuilder<'a>
pub fn builder( key: DeviceBoundSessionKey<'a>, refresh_url: impl Into<Cow<'a, str>>, inclusion_rules: DeviceBoundSessionInclusionRules<'a>, cookie_cravings: Vec<DeviceBoundSessionCookieCraving<'a>>, expiry_date: TimeSinceEpoch, allowed_refresh_initiators: Vec<Cow<'a, str>>, ) -> DeviceBoundSessionBuilder<'a>
Creates a builder for this type with the required parameters:
key: The site and session ID of the session.refresh_url: See comments onnet::device_bound_sessions::Session::refresh_url_.inclusion_rules: See comments onnet::device_bound_sessions::Session::inclusion_rules_.cookie_cravings: See comments onnet::device_bound_sessions::Session::cookie_cravings_.expiry_date: See comments onnet::device_bound_sessions::Session::expiry_date_.allowed_refresh_initiators: See comments onnet::device_bound_sessions::Session::allowed_refresh_initiators_.
Sourcepub fn key(&self) -> &DeviceBoundSessionKey<'a>
pub fn key(&self) -> &DeviceBoundSessionKey<'a>
The site and session ID of the session.
Sourcepub fn refresh_url(&self) -> &str
pub fn refresh_url(&self) -> &str
See comments on ‘net::device_bound_sessions::Session::refresh_url_’.
Sourcepub fn inclusion_rules(&self) -> &DeviceBoundSessionInclusionRules<'a>
pub fn inclusion_rules(&self) -> &DeviceBoundSessionInclusionRules<'a>
See comments on ‘net::device_bound_sessions::Session::inclusion_rules_’.
See comments on ‘net::device_bound_sessions::Session::cookie_cravings_’.
Sourcepub fn expiry_date(&self) -> &TimeSinceEpoch
pub fn expiry_date(&self) -> &TimeSinceEpoch
See comments on ‘net::device_bound_sessions::Session::expiry_date_’.
Sourcepub fn cached_challenge(&self) -> Option<&str>
pub fn cached_challenge(&self) -> Option<&str>
See comments on ‘net::device_bound_sessions::Session::cached_challenge__’.
Sourcepub fn allowed_refresh_initiators(&self) -> &[Cow<'a, str>]
pub fn allowed_refresh_initiators(&self) -> &[Cow<'a, str>]
See comments on ‘net::device_bound_sessions::Session::allowed_refresh_initiators_’.
Trait Implementations§
Source§impl<'a> Clone for DeviceBoundSession<'a>
impl<'a> Clone for DeviceBoundSession<'a>
Source§fn clone(&self) -> DeviceBoundSession<'a>
fn clone(&self) -> DeviceBoundSession<'a>
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 moreSource§impl<'a> Debug for DeviceBoundSession<'a>
impl<'a> Debug for DeviceBoundSession<'a>
Source§impl<'a> Default for DeviceBoundSession<'a>
impl<'a> Default for DeviceBoundSession<'a>
Source§fn default() -> DeviceBoundSession<'a>
fn default() -> DeviceBoundSession<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DeviceBoundSession<'a>
impl<'de, 'a> Deserialize<'de> for DeviceBoundSession<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for DeviceBoundSession<'a>
impl<'a> RefUnwindSafe for DeviceBoundSession<'a>
impl<'a> Send for DeviceBoundSession<'a>
impl<'a> Sync for DeviceBoundSession<'a>
impl<'a> Unpin for DeviceBoundSession<'a>
impl<'a> UnsafeUnpin for DeviceBoundSession<'a>
impl<'a> UnwindSafe for DeviceBoundSession<'a>
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