pub struct SessionManager { /* private fields */ }Implementations§
Source§impl SessionManager
impl SessionManager
pub fn new(selector: CapabilitySelector) -> Self
pub fn selector(&self) -> &CapabilitySelector
pub async fn snapshot(&self) -> Option<SessionSnapshot>
pub async fn clear(&self)
pub async fn start_session<R: Rng>( &self, lease: &LeaseEnvelope, now: Instant, policy: &HeartbeatPolicy, rng: &mut R, ) -> Result<SessionSnapshot, SessionError>
pub async fn apply_heartbeat<R: Rng>( &self, lease: &LeaseEnvelope, progress: Option<Value>, now: Instant, policy: &HeartbeatPolicy, rng: &mut R, ) -> Result<SessionSnapshot, SessionError>
Trait Implementations§
Source§impl Clone for SessionManager
impl Clone for SessionManager
Source§fn clone(&self) -> SessionManager
fn clone(&self) -> SessionManager
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionManager
impl !RefUnwindSafe for SessionManager
impl Send for SessionManager
impl Sync for SessionManager
impl Unpin for SessionManager
impl !UnwindSafe for SessionManager
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