pub enum AtpSessionEvent {
Create,
CreateFailed,
Update,
Expired,
NetworkError,
}Expand description
Session lifecycle events emitted by Agent.
Mirrors TS AtpSessionEvent. Register a listener via
Agent::on_session to observe login / refresh / expiry. Typical
use is to persist the session on Create / Update and to clear
local state on Expired.
Variants§
Create
A new session was established (successful login / resume).
CreateFailed
A login attempt failed.
Update
The session tokens were refreshed.
Expired
The server rejected the refresh — the user must log in again.
NetworkError
A network-level failure during a session-affecting call.
Trait Implementations§
Source§impl Clone for AtpSessionEvent
impl Clone for AtpSessionEvent
Source§fn clone(&self) -> AtpSessionEvent
fn clone(&self) -> AtpSessionEvent
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 moreSource§impl Debug for AtpSessionEvent
impl Debug for AtpSessionEvent
Source§impl PartialEq for AtpSessionEvent
impl PartialEq for AtpSessionEvent
impl Copy for AtpSessionEvent
impl Eq for AtpSessionEvent
impl StructuralPartialEq for AtpSessionEvent
Auto Trait Implementations§
impl Freeze for AtpSessionEvent
impl RefUnwindSafe for AtpSessionEvent
impl Send for AtpSessionEvent
impl Sync for AtpSessionEvent
impl Unpin for AtpSessionEvent
impl UnsafeUnpin for AtpSessionEvent
impl UnwindSafe for AtpSessionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.