pub struct ClientBuilder { /* private fields */ }Expand description
Builder for configuring and connecting to an agtrace workspace.
Provides flexible path resolution with the following priority:
- Explicit path via
builder.path() AGTRACE_PATHenvironment variable- XDG data directory (e.g.,
~/.local/share/agtraceon Linux,~/Library/Application Support/agtraceon macOS)
§Examples
// Use default XDG path
let client = Client::connect_default().await?;
// Use explicit path
let client = Client::builder()
.path("/custom/path")
.connect().await?;
// Use AGTRACE_PATH environment variable
// $ export AGTRACE_PATH=/tmp/agtrace
let client = Client::builder().connect().await?;Implementations§
Trait Implementations§
Source§impl Default for ClientBuilder
impl Default for ClientBuilder
Source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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