pub struct SessionsSection {
pub proof_ttl_secs: Option<u64>,
pub live_per_account: Option<usize>,
}Expand description
The sessions this server issues from a proof.
Reload: needs a restart. The values are read once, into the registry and its token store.
Fields§
§proof_ttl_secs: Option<u64>How long a session minted from a key-signed JWT or an OpenID Connect token lasts, in seconds. A session minted at creation keeps its own lifetime.
Reasonable range: 300 to 86_400. An hour, the default: a run that holds a session longer re-proves itself for one round trip.
live_per_account: Option<usize>How many live sessions one account may hold; the one expiring soonest makes room for the next.
Reasonable range: 1 to 64. Eight, the default, covers a pipeline whose runs overlap.
Trait Implementations§
Source§impl Clone for SessionsSection
impl Clone for SessionsSection
Source§fn clone(&self) -> SessionsSection
fn clone(&self) -> SessionsSection
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 Debug for SessionsSection
impl Debug for SessionsSection
Source§impl Default for SessionsSection
impl Default for SessionsSection
Source§fn default() -> SessionsSection
fn default() -> SessionsSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionsSection
impl<'de> Deserialize<'de> for SessionsSection
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
Source§impl PartialEq for SessionsSection
impl PartialEq for SessionsSection
Source§fn eq(&self, other: &SessionsSection) -> bool
fn eq(&self, other: &SessionsSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionsSection
impl Serialize for SessionsSection
impl Eq for SessionsSection
impl StructuralPartialEq for SessionsSection
Auto Trait Implementations§
impl Freeze for SessionsSection
impl RefUnwindSafe for SessionsSection
impl Send for SessionsSection
impl Sync for SessionsSection
impl Unpin for SessionsSection
impl UnsafeUnpin for SessionsSection
impl UnwindSafe for SessionsSection
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