Skip to main content

RunningRecord

Struct RunningRecord 

Source
pub struct RunningRecord {
Show 19 fields pub session_id: String, pub url: Option<String>, pub pid: u32, pub process_start: String, pub capsule_name: String, pub capsule_version: String, pub workdir: PathBuf, pub records_dir: PathBuf, pub outlives_launcher: bool, pub started_at: String, pub door_token: Option<DoorToken>, pub credentials: BTreeMap<String, DoorToken>, pub formation_id: Option<FormationId>, pub formation_member: Option<String>, pub formation_entry: bool, pub formation_lifeline: bool, pub formation_launcher: Option<ProcessIdentity>, pub spawned_by: Option<String>, pub unconfined: bool,
}
Expand description

Which process holds one running session, and where its door is when it has one.

Every field but door_token, credentials, formation_id, formation_member, formation_entry, formation_lifeline, formation_launcher and spawned_by is required, and each of those eight is omitted when it does not apply, so a standalone session’s record carries the ten required keys alone. There is no version field: a record that does not deserialize names no process that could be checked, and is pruned, which is what “the record is a hint” already means — except one an older mur wrote, which scan recognises by its missing records_dir and no reader removes.

Fields§

§session_id: String

The session this door answers for, compared against the agent card by layer 3.

§url: Option<String>

host:port the A2A door is bound to. None for a script capsule, which binds no door; always serialized, as null then.

§pid: u32

The process holding the door.

§process_start: String

That process’s start time, as an opaque platform-local token — see process_start_token.

§capsule_name: String§capsule_version: String§workdir: PathBuf

The session’s work folder. The trace and results are in Self::records_dir.

§records_dir: PathBuf

The session’s records directory, ~/.murmur/records/<workdir root>/<session-id>, where a reader finds the trace of what it is watching, outside the workdir the capsule’s commands write. Required. A JSON object with a string session_id and no records_dir key is a record an older mur wrote: scan lists it in RecordScan::older_mur, and nothing reads its other fields or removes it.

§outlives_launcher: bool

Whether the capsule survives the window that launched it — true when the launching process had no controlling terminal.

§started_at: String

RFC 3339, in UTC.

§door_token: Option<DoorToken>

The operator token of a door declaring network.authentication, which the host tools present to it. Absent for a public door, and in a record an older runtime wrote. Its Debug is redacted, and it is serialized only here, into a file held at 0600.

§credentials: BTreeMap<String, DoorToken>

The tokens of the credentials network.authentication.credentials declares, by name. The operator token is door_token, never an entry here. Empty, and omitted, for a public door, for one declaring no credentials, and in a record an older runtime wrote. Every scope of every entry is also a scope of door_token, so holding them beside it exposes nothing the file did not already.

§formation_id: Option<FormationId>

The formation this session is a member of, so a reader can tell a formation’s records from unrelated sessions on the machine. Absent for a session in no formation, and in a record an older runtime wrote. It groups records and grants nothing. A value that is not a formation id makes the whole record unreadable, which list prunes like any other.

§formation_member: Option<String>

The member’s roster name, so a reader can tell apart members running the same capsule. Present only for a session mur run --roster launched as a member, and then the same name as the trace’s session_start.formation_member. Absent for a session in no formation, for a member’s delegated child, for a session joined to a formation through MURMUR_FORMATION_ID alone, and in a record an older runtime wrote. It labels the record and grants nothing. A value that is not a member name makes the whole record unreadable.

§formation_entry: bool

The session is its formation’s entry member: the member mur run --roster hands the formation’s task, or whose door takes the formation’s tasks. Set from the member’s formation channel. Absent when false: for every other member, every session in no formation, a member’s delegated child, and in a record an older runtime wrote.

§formation_lifeline: bool

The session holds a formation lifeline: its launcher ends it by closing that lifeline, and nothing else needs to. Absent when false.

§formation_launcher: Option<ProcessIdentity>

The formation launcher that started this session, as the launcher named itself on the member’s formation channel. Absent for a session no launcher started, and for a member whose launcher could not read its own start time. A value that is not an object with a pid and a process_start makes the whole record unreadable.

§spawned_by: Option<String>

The session id of the session that delegated to this one. A delegated child holds its spawner’s lifeline and ends with it. Absent for a session nothing delegated to.

§unconfined: bool

The session runs unconfined: its commands run as the operator. Absent when false.

Implementations§

Source§

impl RunningRecord

Source

pub fn identity(&self) -> ProcessIdentity

The process this record names.

Trait Implementations§

Source§

impl Clone for RunningRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RunningRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RunningRecord

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for RunningRecord

Source§

impl PartialEq for RunningRecord

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RunningRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RunningRecord

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more