pub struct PendingSession {
pub session_id: String,
pub sender_ip: IpAddr,
pub cert_fingerprint: Option<String>,
pub cancel: CancellationToken,
pub created_at: Instant,
}Expand description
A pending session awaiting user decision (or auto-accept).
Fields§
§session_id: StringUnique session identifier.
sender_ip: IpAddrIP address of the sender.
cert_fingerprint: Option<String>Certificate fingerprint of sender (if mTLS used).
cancel: CancellationTokenCancellation token if sender disconnects or cancels before decision.
created_at: InstantWhen the pending session was initiated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PendingSession
impl RefUnwindSafe for PendingSession
impl Send for PendingSession
impl Sync for PendingSession
impl Unpin for PendingSession
impl UnsafeUnpin for PendingSession
impl UnwindSafe for PendingSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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