pub struct AgentInventory {
pub entries: Vec<AgentEntry>,
pub refreshed_at: Instant,
}Expand description
A point-in-time inventory snapshot.
Fields§
§entries: Vec<AgentEntry>One entry per agent the broker knows about, plus the supervisor row.
refreshed_at: InstantWhen this snapshot was built — used by InventoryCache freshness.
Implementations§
Source§impl AgentInventory
impl AgentInventory
Sourcepub fn find(&self, target_id: &str) -> Option<&AgentEntry>
pub fn find(&self, target_id: &str) -> Option<&AgentEntry>
Looks up an entry by target identifier, matching either the slug
(feat-auth) or slash form (feat/auth).
Sourcepub fn candidate_ids(&self) -> Vec<String>
pub fn candidate_ids(&self) -> Vec<String>
The candidate target identifiers (every agent except the supervisor), sorted for deterministic rendering.
Trait Implementations§
Source§impl Clone for AgentInventory
impl Clone for AgentInventory
Source§fn clone(&self) -> AgentInventory
fn clone(&self) -> AgentInventory
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 moreAuto Trait Implementations§
impl Freeze for AgentInventory
impl RefUnwindSafe for AgentInventory
impl Send for AgentInventory
impl Sync for AgentInventory
impl Unpin for AgentInventory
impl UnsafeUnpin for AgentInventory
impl UnwindSafe for AgentInventory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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 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>
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