pub struct AppServerImageProvider { /* private fields */ }Expand description
Provider backed by one initialized app-server connection.
Implementations§
Source§impl AppServerImageProvider
impl AppServerImageProvider
Sourcepub fn new(
rpc: Arc<AppServerRpc>,
sessions: Arc<dyn SessionBindingStore>,
config: AppServerProviderConfig,
) -> Self
pub fn new( rpc: Arc<AppServerRpc>, sessions: Arc<dyn SessionBindingStore>, config: AppServerProviderConfig, ) -> Self
Creates a provider over an existing initialized connection.
Sourcepub fn new_with_inputs(
rpc: Arc<AppServerRpc>,
sessions: Arc<dyn SessionBindingStore>,
config: AppServerProviderConfig,
reference_inputs: AppServerReferenceInputs,
) -> Self
pub fn new_with_inputs( rpc: Arc<AppServerRpc>, sessions: Arc<dyn SessionBindingStore>, config: AppServerProviderConfig, reference_inputs: AppServerReferenceInputs, ) -> Self
Creates a provider over an existing connection with secure references.
Sourcepub fn with_process(
process: Arc<CodexProcess>,
sessions: Arc<dyn SessionBindingStore>,
config: AppServerProviderConfig,
) -> Self
pub fn with_process( process: Arc<CodexProcess>, sessions: Arc<dyn SessionBindingStore>, config: AppServerProviderConfig, ) -> Self
Creates a provider that owns and shuts down its Codex child process.
Sourcepub fn with_process_and_inputs(
process: Arc<CodexProcess>,
sessions: Arc<dyn SessionBindingStore>,
config: AppServerProviderConfig,
reference_inputs: AppServerReferenceInputs,
) -> Self
pub fn with_process_and_inputs( process: Arc<CodexProcess>, sessions: Arc<dyn SessionBindingStore>, config: AppServerProviderConfig, reference_inputs: AppServerReferenceInputs, ) -> Self
Creates an owned provider with secure bridge-staged reference inputs.
Trait Implementations§
Source§impl Debug for AppServerImageProvider
impl Debug for AppServerImageProvider
Source§impl ImageProvider for AppServerImageProvider
impl ImageProvider for AppServerImageProvider
Source§fn descriptor(&self) -> ProviderDescriptor
fn descriptor(&self) -> ProviderDescriptor
Returns stable provider identity.
Source§fn capabilities<'life0, 'life1, 'async_trait>(
&'life0 self,
model: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ProviderCapabilities, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn capabilities<'life0, 'life1, 'async_trait>(
&'life0 self,
model: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ProviderCapabilities, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns current capabilities for an optional model.
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
request: ImageRequest,
context: ProviderContext,
) -> Pin<Box<dyn Future<Output = Result<ImageResponse, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
request: ImageRequest,
context: ProviderContext,
) -> Pin<Box<dyn Future<Output = Result<ImageResponse, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes one normalized request without exposing incremental events.
Source§fn check_ready<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_ready<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Performs a non-generating auth/readiness check.
Source§fn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SessionMetadata, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SessionMetadata, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Looks up caller-visible persistent session metadata when supported.
Source§fn delete_session<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_session<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes a persistent session binding when supported.
Source§fn restart_count(&self) -> Option<u64>
fn restart_count(&self) -> Option<u64>
Returns the number of supervised provider process restarts when exposed. Read more
Source§fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Releases provider resources during graceful shutdown.
Source§fn execute_stream<'life0, 'async_trait>(
&'life0 self,
_request: ImageRequest,
_context: ProviderContext,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<ProviderEvent, BridgeError>> + Send>>, BridgeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
_request: ImageRequest,
_context: ProviderContext,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<ProviderEvent, BridgeError>> + Send>>, BridgeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Starts a request with incremental events when supported.
Auto Trait Implementations§
impl !Freeze for AppServerImageProvider
impl !RefUnwindSafe for AppServerImageProvider
impl !UnwindSafe for AppServerImageProvider
impl Send for AppServerImageProvider
impl Sync for AppServerImageProvider
impl Unpin for AppServerImageProvider
impl UnsafeUnpin for AppServerImageProvider
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