pub enum EngineOutcome {
Served(ModelResponse),
Failed(String),
}Expand description
The outcome of an enforce-mode routing decision.
Variants§
Served(ModelResponse)
An output was served (from a passing attempt, or the best attempt when the ladder was exhausted without a pass).
Failed(String)
Nothing could be served — every rung errored, or a hard (non-failover) error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineOutcome
impl RefUnwindSafe for EngineOutcome
impl Send for EngineOutcome
impl Sync for EngineOutcome
impl Unpin for EngineOutcome
impl UnsafeUnpin for EngineOutcome
impl UnwindSafe for EngineOutcome
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