pub struct ClaudeExecutor { /* private fields */ }Implementations§
Source§impl ClaudeExecutor
impl ClaudeExecutor
Sourcepub fn new(base_url: impl Into<String>) -> Result<Self>
pub fn new(base_url: impl Into<String>) -> Result<Self>
Production executor: native wire profile with the process-global transport.
Sourcepub fn with_hooks(hooks: Hooks, base_url: impl Into<String>) -> Self
pub fn with_hooks(hooks: Hooks, base_url: impl Into<String>) -> Self
The production profile with test trust roots and dial overrides (harness). OAuth refresh uses the same transport, so it cannot escape the hooks.
Sourcepub fn with_client(client: Client, base_url: impl Into<String>) -> Self
pub fn with_client(client: Client, base_url: impl Into<String>) -> Self
A caller-built client for every unproxied request (plain mocks). First-party requests keep the native header order on it, but not the native TLS profile.
Sourcepub fn quota(&self) -> &Observations
pub fn quota(&self) -> &Observations
The latest quota signals each Claude credential’s responses carried (Go
QuotaState.ObserveResponseHeadersForProvider).
Sourcepub fn with_oauth(self, oauth: OAuth) -> Self
pub fn with_oauth(self, oauth: OAuth) -> Self
Overrides the OAuth service (local token/profile mocks).
pub fn needs_prepare(&self, credential: &Credential, cfg: &Config) -> bool
pub fn needs_prepare_at( &self, credential: &Credential, _cfg: &Config, now: DateTime<Utc>, ) -> bool
pub async fn prepare( &self, credential: &Credential, cfg: &Config, ) -> Result<MetadataPatch, ExecError>
pub async fn execute( &self, credential: &Credential, req: ExecRequest, cfg: &Config, ) -> Result<ExecResponse, ExecError>
Sourcepub async fn execute_delegated(
&self,
credential: &Credential,
req: ExecRequest,
cfg: &Config,
delegation: Delegation,
) -> Result<ExecResponse, ExecError>
pub async fn execute_delegated( &self, credential: &Credential, req: ExecRequest, cfg: &Config, delegation: Delegation, ) -> Result<ExecResponse, ExecError>
Self::execute on behalf of a delegating executor.
Auto Trait Implementations§
impl !RefUnwindSafe for ClaudeExecutor
impl !UnwindSafe for ClaudeExecutor
impl Forget for ClaudeExecutor
impl Freeze for ClaudeExecutor
impl Move for ClaudeExecutor
impl Send for ClaudeExecutor
impl Sync for ClaudeExecutor
impl Unpin for ClaudeExecutor
impl UnsafeUnpin for ClaudeExecutor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more