pub struct Client { /* private fields */ }Expand description
Main entry point for interacting with an agtrace workspace.
Implementations§
Source§impl Client
impl Client
Sourcepub fn connect(path: impl Into<PathBuf>) -> Result<Self>
pub fn connect(path: impl Into<PathBuf>) -> Result<Self>
Connect to an agtrace workspace at the given path.
Sourcepub fn sessions(&self) -> SessionClient
pub fn sessions(&self) -> SessionClient
Access session operations.
Sourcepub fn projects(&self) -> ProjectClient
pub fn projects(&self) -> ProjectClient
Access project operations.
Sourcepub fn watch(&self) -> WatchClient
pub fn watch(&self) -> WatchClient
Access watch/monitoring operations.
Sourcepub fn insights(&self) -> InsightClient
pub fn insights(&self) -> InsightClient
Access insights/analysis operations.
Sourcepub fn system(&self) -> SystemClient
pub fn system(&self) -> SystemClient
Access system operations (init, index, doctor, provider).
Sourcepub fn watch_service(&self) -> WatchService
pub fn watch_service(&self) -> WatchService
Get the watch service for low-level watch operations.
Prefer using client.watch() for most use cases.
pub fn session(&self, id: &str) -> SessionHandle
👎Deprecated: Use client.sessions().get(id) instead
pub fn list_sessions(&self) -> Result<Vec<SessionSummary>>
👎Deprecated: Use client.sessions().list(filter) instead
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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