pub struct LiveSessions { /* private fields */ }Expand description
Every running session on this machine with its door, read once: what
message list shows, what names resolve against, and what discovery
projects onto each discovered session as delivery.
Implementations§
Source§impl LiveSessions
impl LiveSessions
Sourcepub fn read(homes: &HarnessHomes) -> Self
pub fn read(homes: &HarnessHomes) -> Self
Read every running session now. Sessions supercode controls come first, and a degraded-tier row for the same session is dropped: the runtime is the default tier.
Sourcepub fn all(&self) -> &[LiveSession]
pub fn all(&self) -> &[LiveSession]
Every running session.
Sourcepub fn door(&self, harness: &str, session_id: &str) -> Option<&'static str>
pub fn door(&self, harness: &str, session_id: &str) -> Option<&'static str>
The door that reaches harness’s session session_id, when it is
running.
Sourcepub fn resolve(&self, to: &str) -> Result<&LiveSession, Unresolved>
pub fn resolve(&self, to: &str) -> Result<&LiveSession, Unresolved>
The running session an agent means by to: an address, name@machine
on this machine, or a name unique here.
Trait Implementations§
Source§impl Debug for LiveSessions
impl Debug for LiveSessions
Auto Trait Implementations§
impl Freeze for LiveSessions
impl RefUnwindSafe for LiveSessions
impl Send for LiveSessions
impl Sync for LiveSessions
impl Unpin for LiveSessions
impl UnsafeUnpin for LiveSessions
impl UnwindSafe for LiveSessions
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