pub struct AiSessionRow {
pub provider: String,
pub index: u32,
}Expand description
One row of the AI-session source. The picker host (App)
snapshots this from the AiLogger service’s known_sessions()
(no async lock — the logger’s ring map is a sync Mutex), then
hands the vec to the picker. Mirrors LspInstanceRow, one
level simpler: a session has no workspace / buffer-count /
capability marginalia, only its (provider, index) key.
Fields§
§provider: String§index: u32Implementations§
Source§impl AiSessionRow
impl AiSessionRow
Sourcepub fn into_candidate_with_routing(self) -> (RawCandidate, RoutingPayload)
pub fn into_candidate_with_routing(self) -> (RawCandidate, RoutingPayload)
Render this row as a (RawCandidate, RoutingPayload) pair.
The candidate’s display is the user-facing
<provider>:<index> (matching the *ai:<provider>:<index>*
buffer name body); the typed RoutingPayload::AiSession
carries the (provider, index) key the accept dispatch
reconstructs into a SessionKey.
Trait Implementations§
Source§impl Clone for AiSessionRow
impl Clone for AiSessionRow
Source§fn clone(&self) -> AiSessionRow
fn clone(&self) -> AiSessionRow
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 AiSessionRow
impl RefUnwindSafe for AiSessionRow
impl Send for AiSessionRow
impl Sync for AiSessionRow
impl Unpin for AiSessionRow
impl UnsafeUnpin for AiSessionRow
impl UnwindSafe for AiSessionRow
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