pub struct DebugSession {
pub session_id: String,
pub net_name: String,
pub dot_diagram: String,
pub places: Option<PlaceAnalysis>,
pub transition_names: Vec<String>,
pub event_store: Arc<DebugEventStore>,
pub start_time: u64,
pub active: bool,
pub imported_structure: Option<NetStructure>,
pub end_time: Option<u64>,
pub tags: HashMap<String, String>,
}Expand description
A registered debug session.
Fields§
§session_id: String§net_name: String§dot_diagram: String§places: Option<PlaceAnalysis>§transition_names: Vec<String>§event_store: Arc<DebugEventStore>§start_time: u64§active: bool§imported_structure: Option<NetStructure>§end_time: Option<u64>Stamped on first DebugSessionRegistry::complete. None while active. (libpetri 1.6.0+)
Per-session tag storage. Prefer DebugSessionRegistry::tag /
DebugSessionRegistry::tags_for over direct access. (libpetri 1.6.0+)
Implementations§
Source§impl DebugSession
impl DebugSession
Sourcepub fn duration_ms(&self) -> Option<u64>
pub fn duration_ms(&self) -> Option<u64>
Returns the session duration in milliseconds if the session has completed. (libpetri 1.6.0+)
Auto Trait Implementations§
impl Freeze for DebugSession
impl RefUnwindSafe for DebugSession
impl Send for DebugSession
impl Sync for DebugSession
impl Unpin for DebugSession
impl UnsafeUnpin for DebugSession
impl UnwindSafe for DebugSession
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