pub struct OutputFanoutProvider { /* private fields */ }Expand description
Provider decorator that turns one logical multi-output request into bounded calls.
Implementations§
Source§impl OutputFanoutProvider
impl OutputFanoutProvider
Sourcepub fn new(
inner: Arc<dyn ImageProvider>,
config: OutputFanoutConfig,
) -> Result<Self, BridgeError>
pub fn new( inner: Arc<dyn ImageProvider>, config: OutputFanoutConfig, ) -> Result<Self, BridgeError>
Decorates a provider without changing its registry identity.
Trait Implementations§
Source§impl Debug for OutputFanoutProvider
impl Debug for OutputFanoutProvider
Source§impl ImageProvider for OutputFanoutProvider
impl ImageProvider for OutputFanoutProvider
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 !RefUnwindSafe for OutputFanoutProvider
impl !UnwindSafe for OutputFanoutProvider
impl Freeze for OutputFanoutProvider
impl Send for OutputFanoutProvider
impl Sync for OutputFanoutProvider
impl Unpin for OutputFanoutProvider
impl UnsafeUnpin for OutputFanoutProvider
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