pub struct SessionState {
pub name: String,
pub port: u16,
pub view: SharedView,
pub kind: StreamKind,
pub connected: bool,
/* private fields */
}Expand description
Per-session state owned by the main loop.
Fields§
§name: String§port: u16§view: SharedView§kind: StreamKind§connected: boolImplementations§
Source§impl SessionState
impl SessionState
Sourcepub fn window_title(&self) -> String
pub fn window_title(&self) -> String
Title text for this session’s window. A trace session’s kind is
called out with a leading [trace] tag – the name :port shape
alone gives no hint that a window is rendering structured log
records rather than a token stream, and that distinction matters
enough at a glance to be worth the few extra characters.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SessionState
impl !Send for SessionState
impl !Sync for SessionState
impl !UnwindSafe for SessionState
impl Freeze for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
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