pub struct FoundryTransport { /* private fields */ }Available on crate feature
azure only.Expand description
Azure AI Foundry HTTP transport.
Implementations§
Trait Implementations§
Source§impl Clone for FoundryTransport
impl Clone for FoundryTransport
Source§fn clone(&self) -> FoundryTransport
fn clone(&self) -> FoundryTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Transport for FoundryTransport
impl Transport for FoundryTransport
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable transport identifier —
"direct", "bedrock", "vertex",
"foundry". Used in logs and metrics tags.Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
request: EncodedRequest,
ctx: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<TransportResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
request: EncodedRequest,
ctx: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<TransportResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a codec-produced request and return the raw response. The
transport applies credentials immediately before send and discards
the resolved value before returning (invariant 10 — tokens never
reach
ExecutionContext).Source§fn send_streaming<'life0, 'life1, 'async_trait>(
&'life0 self,
request: EncodedRequest,
ctx: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<TransportStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_streaming<'life0, 'life1, 'async_trait>(
&'life0 self,
request: EncodedRequest,
ctx: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<TransportStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Streaming variant of
Self::send: opens a connection that
returns body bytes incrementally (typically text/event-stream).
The default impl falls back to send, wrapping the buffered body
in a single-chunk stream so codecs that rely on
Codec::decode_stream still work — at the cost of no real-time
delivery. Concrete transports override to keep the connection
open and yield bytes as they arrive.Auto Trait Implementations§
impl Freeze for FoundryTransport
impl !RefUnwindSafe for FoundryTransport
impl Send for FoundryTransport
impl Sync for FoundryTransport
impl Unpin for FoundryTransport
impl UnsafeUnpin for FoundryTransport
impl !UnwindSafe for FoundryTransport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.