pub struct LanInstance {Show 23 fields
pub instance_id: String,
pub hostname: String,
pub version: String,
pub channel: String,
pub os: String,
pub install_id: String,
pub install: String,
pub build: String,
pub address: String,
pub port: u16,
pub auth_key: String,
pub agents: Vec<String>,
pub agent_status: BTreeMap<String, AgentState>,
pub agent_lines: BTreeMap<String, String>,
pub agent_providers: BTreeMap<String, String>,
pub agent_kinds: BTreeMap<String, RuntimeKind>,
pub agent_accounts: BTreeMap<String, String>,
pub agent_resets: BTreeMap<String, u64>,
pub agent_seats: BTreeMap<String, SeatSummary>,
pub first_seen: u64,
pub last_seen: u64,
pub last_polled_ok: u64,
pub other_ttl_secs: u32,
}Fields§
§instance_id: String§hostname: String§version: String§channel: StringThe advertising instance’s channel (AGENTMUX_CHANNEL, default
“stable”), so a host running two channels can be told apart in the
Swarm (SPEC_SWARM_OTHER_HOSTS_AND_CHANNELS_2026_10_02.md Phase 2). Empty
for a peer on a build from before it was advertised.
os: StringThe peer’s operating system (windows, macos, linux), for the
platform tag in the Swarm. Display only; empty for a peer that does not
advertise it (SPEC_SWARM_REMOTE_AGENTS_PLATFORM_TAG_AND_SELECTION_2026_10_03.md §3).
install_id: StringThe install’s WAN instance id as the peer advertises it, a well-formed one only; empty for a peer that predates it. An identifier, never proof (peer_words::install_id_token).
install: StringHow the peer is installed (InstallKind::label, e.g. windows-store); empty when it predates advertising it.
build: StringThe kind of build the peer says its binary is (BuildKind::label), never read off its channel; empty when it predates advertising it.
address: String§port: u16§auth_key: StringThe peer’s lan_key; never serialized, as no reader of the JSON needs it.
agents: Vec<String>§agent_status: BTreeMap<String, AgentState>Each listed agent’s state and summary line as the peer reported them, by
lower-cased name (lan/discovery/agent_names.rs). Self-reported, for the Swarm.
agent_lines: BTreeMap<String, String>§agent_providers: BTreeMap<String, String>Each listed agent’s provider id, a known one only (agent_names.rs).
agent_kinds: BTreeMap<String, RuntimeKind>Each listed agent’s runtime, host or container, as the peer reported it (agent_names.rs).
agent_accounts: BTreeMap<String, String>Each listed agent’s account, as the peer’s stable account id (agent_names.rs,
SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md §4.4). Omitted when none has one.
agent_resets: BTreeMap<String, u64>Each limited agent’s reset time (unix ms) as the peer reported it (agent_names.rs); omitted when none.
agent_seats: BTreeMap<String, SeatSummary>Each listed agent’s seat as the peer reported it, by lower-cased name
(agent_names.rs; SPEC_AGENT_SEATS_IN_THE_UI_2026_10_23.md §5).
Omitted when none has one.
first_seen: u64§last_seen: u64§last_polled_ok: u64Unix seconds of the last answered agent-name poll, 0 for never. The Swarm
judges liveness by the later of this and last_seen (mDNS re-resolves only).
other_ttl_secs: u32This peer’s advertised PTR/TXT record TTL (seconds) at its latest
ServiceResolved (get_other_ttl()); drives peer_staleness_window_secs.
Trait Implementations§
Source§impl Clone for LanInstance
impl Clone for LanInstance
Source§fn clone(&self) -> LanInstance
fn clone(&self) -> LanInstance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LanInstance
impl Debug for LanInstance
Source§impl<'de> Deserialize<'de> for LanInstance
impl<'de> Deserialize<'de> for LanInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for LanInstance
impl Serialize for LanInstance
Source§impl TS for LanInstance
impl TS for LanInstance
Source§type WithoutGenerics = LanInstance
type WithoutGenerics = LanInstance
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = LanInstance
type OptionInnerType = LanInstance
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributes§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export]. Read moreAuto Trait Implementations§
impl Freeze for LanInstance
impl RefUnwindSafe for LanInstance
impl Send for LanInstance
impl Sync for LanInstance
impl Unpin for LanInstance
impl UnsafeUnpin for LanInstance
impl UnwindSafe for LanInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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