pub struct UnconfiguredProvider { /* private fields */ }Expand description
Placeholder provider used when SessionPolicy::default() is
constructed without an explicit provider. Every transport-level
method errors; calling code MUST replace this before executing a
turn. It exists solely so ..Default::default() shorthand keeps
working in host code that always overrides the provider field.
Trait Implementations§
Source§impl Clone for UnconfiguredProvider
impl Clone for UnconfiguredProvider
Source§fn clone(&self) -> UnconfiguredProvider
fn clone(&self) -> UnconfiguredProvider
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 Debug for UnconfiguredProvider
impl Debug for UnconfiguredProvider
Source§impl Default for UnconfiguredProvider
impl Default for UnconfiguredProvider
Source§fn default() -> UnconfiguredProvider
fn default() -> UnconfiguredProvider
Returns the “default value” for a type. Read more
Source§impl Provider for UnconfiguredProvider
impl Provider for UnconfiguredProvider
fn kind(&self) -> &'static str
fn options(&self) -> ProviderOptions
fn set_options(&mut self, options: ProviderOptions)
Source§fn serialize_config(&self) -> Value
fn serialize_config(&self) -> Value
Emit the provider-specific JSON body used by
ProviderSpec. The
object must NOT contain a type field — [ProviderSpec::Serialize]
layers that on top.fn complete<'life0, 'async_trait>(
&'life0 mut self,
_request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse, LlmTransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clone_boxed(&self) -> Box<dyn Provider>
fn requires_streaming(&self) -> bool
Auto Trait Implementations§
impl Freeze for UnconfiguredProvider
impl RefUnwindSafe for UnconfiguredProvider
impl Send for UnconfiguredProvider
impl Sync for UnconfiguredProvider
impl Unpin for UnconfiguredProvider
impl UnsafeUnpin for UnconfiguredProvider
impl UnwindSafe for UnconfiguredProvider
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