Source referencesRust module referenceopenagent-client
openagent-client · error
Declared module signatures, types, configuration, and source documentation.
Source: openagents/openagent.id/crates/openagent-client/src/error.rs. SHA-256: 765b122c694fce1392af3c172bd77dfa289e9873ac48ecff105e0a2ab3f5a054.
This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.
error::ClientError
Errors from the OpenAgent client.
#[derive(Debug, thiserror::Error)]
pub enum ClientError {
#[error("invalid URL: {0}")]
InvalidUrl(String),
#[error("HTTP request failed: {0}")]
Http(reqwest::Error),
#[error("server returned 401 but no WWW-Authenticate header with OpenAgent challenge")]
NoChallengeHeader,
#[error("malformed challenge: {0}")]
MalformedChallenge(String),
#[error("server rejected the signed challenge")]
AuthenticationRejected,
}Source line: 5.