pub struct SessionRecord {
pub account: ParticipantId,
pub card: SessionCard,
pub last_seen_unix_ms: u64,
}Expand description
One live session, as the mailbox’s own registry holds it. Carries no
secret and no permission bits of its own – a session authenticates
through its account’s bearer secret plus kernel attestation of the
calling process (mail4agent-attest, outside this crate entirely), and
borrows its account’s may_send/may_read/operator bits rather than
carrying its own (see crate::MailboxEngine::resolve_identity). This is
“a participant record gains a kind” made a type-system fact rather than
a runtime tag: ParticipantRecord is the account kind, this is the
session kind, and which one a lookup returns says which kind it found.
Fields§
§account: ParticipantId§card: SessionCard§last_seen_unix_ms: u64Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§impl Debug for SessionRecord
impl Debug for SessionRecord
impl Eq for SessionRecord
Source§impl PartialEq for SessionRecord
impl PartialEq for SessionRecord
impl StructuralPartialEq for SessionRecord
Auto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnsafeUnpin for SessionRecord
impl UnwindSafe for SessionRecord
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