pub enum SessionArchive {
V1(SessionArchiveV1),
V2(SessionArchiveV2),
}Expand description
Sealed archive header across all supported format versions.
Callers pattern-match to access v2-only fields (tags, end_time, metadata).
Shared accessors on the enum return sensible defaults for v1 so uniform callers
don’t need to branch.
Variants§
Implementations§
Source§impl SessionArchive
impl SessionArchive
pub fn version(&self) -> u32
pub fn session_id(&self) -> &str
pub fn net_name(&self) -> &str
pub fn dot_diagram(&self) -> &str
pub fn start_time(&self) -> &str
pub fn event_count(&self) -> usize
pub fn structure(&self) -> &NetStructure
Returns the session tags. v1 archives produce an empty static map.
Sourcepub fn metadata(&self) -> Option<&SessionMetadata>
pub fn metadata(&self) -> Option<&SessionMetadata>
Pre-computed aggregate stats. None for v1 archives — callers that need
them for a v1 session should call
compute_metadata on the
event store after SessionArchiveReader::read_full.
Trait Implementations§
Source§impl Clone for SessionArchive
impl Clone for SessionArchive
Source§fn clone(&self) -> SessionArchive
fn clone(&self) -> SessionArchive
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 SessionArchive
impl RefUnwindSafe for SessionArchive
impl Send for SessionArchive
impl Sync for SessionArchive
impl Unpin for SessionArchive
impl UnsafeUnpin for SessionArchive
impl UnwindSafe for SessionArchive
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