pub struct SessionClient { /* private fields */ }Expand description
Client for session-related operations.
Implementations§
Source§impl SessionClient
impl SessionClient
Sourcepub fn list(&self, filter: SessionFilter) -> Result<Vec<SessionSummary>>
pub fn list(&self, filter: SessionFilter) -> Result<Vec<SessionSummary>>
List sessions with optional filtering.
Sourcepub fn list_without_refresh(
&self,
filter: SessionFilter,
) -> Result<Vec<SessionSummary>>
pub fn list_without_refresh( &self, filter: SessionFilter, ) -> Result<Vec<SessionSummary>>
List sessions without triggering auto-refresh.
Sourcepub fn pack_context(
&self,
project_hash: Option<&ProjectHash>,
limit: usize,
) -> Result<PackResult>
pub fn pack_context( &self, project_hash: Option<&ProjectHash>, limit: usize, ) -> Result<PackResult>
Pack sessions for context window analysis.
Sourcepub fn get(&self, id_or_prefix: &str) -> Result<SessionHandle>
pub fn get(&self, id_or_prefix: &str) -> Result<SessionHandle>
Get a session handle by ID or prefix.
Auto Trait Implementations§
impl Freeze for SessionClient
impl RefUnwindSafe for SessionClient
impl Send for SessionClient
impl Sync for SessionClient
impl Unpin for SessionClient
impl UnwindSafe for SessionClient
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