pub struct AgentSession { /* private fields */ }Implementations§
Source§impl AgentSession
impl AgentSession
Sourcepub fn new(
session_token: impl Into<String>,
idle_secs: u64,
absolute_deadline: Instant,
) -> Self
pub fn new( session_token: impl Into<String>, idle_secs: u64, absolute_deadline: Instant, ) -> Self
Create a new session with separate idle and absolute TTLs.
idle_secs — sliding window reset on every OpenVault request.
absolute_deadline — hard wall-clock cap, never extended.
pub fn state(&self, now: Instant) -> AgentSessionState
pub fn handle_request( &mut self, req: &AgentRequest, peer_pid: Option<u32>, password: &str, now: Instant, ) -> AgentSessionOutcome
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentSession
impl RefUnwindSafe for AgentSession
impl Send for AgentSession
impl Sync for AgentSession
impl Unpin for AgentSession
impl UnsafeUnpin for AgentSession
impl UnwindSafe for AgentSession
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