pub struct ClaudePeerSession {
pub pid: u32,
pub session_id: String,
pub cwd: Option<PathBuf>,
pub name: String,
pub socket_path: PathBuf,
pub status: Option<ClaudePeerStatus>,
pub updated_at_ms: Option<u64>,
pub version: Option<String>,
}Expand description
One live Claude Code session: a registry record whose pid answered
kill(pid, 0) during the read that produced this value.
Fields§
§pid: u32Process holding the session.
session_id: StringClaude-native session id, joinable to a discovered transcript.
cwd: Option<PathBuf>Working directory the session was started in.
name: StringRegistry display name; this is also the cross-session address.
socket_path: PathBufUnix socket the session binds for peer messaging.
status: Option<ClaudePeerStatus>Reported activity. Absent on sessions that never published one.
updated_at_ms: Option<u64>Registry update time in epoch milliseconds, when recorded.
version: Option<String>Claude Code version that wrote the record.
Implementations§
Source§impl ClaudePeerSession
impl ClaudePeerSession
Sourcepub fn endpoint(&self) -> ClaudePeerEndpoint
pub fn endpoint(&self) -> ClaudePeerEndpoint
Project this session as the opaque endpoint discovery publishes.
Trait Implementations§
Source§impl Clone for ClaudePeerSession
impl Clone for ClaudePeerSession
Source§fn clone(&self) -> ClaudePeerSession
fn clone(&self) -> ClaudePeerSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClaudePeerSession
impl Debug for ClaudePeerSession
impl Eq for ClaudePeerSession
Source§impl PartialEq for ClaudePeerSession
impl PartialEq for ClaudePeerSession
impl StructuralPartialEq for ClaudePeerSession
Auto Trait Implementations§
impl Freeze for ClaudePeerSession
impl RefUnwindSafe for ClaudePeerSession
impl Send for ClaudePeerSession
impl Sync for ClaudePeerSession
impl Unpin for ClaudePeerSession
impl UnsafeUnpin for ClaudePeerSession
impl UnwindSafe for ClaudePeerSession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.