pub struct SubprocessGate { /* private fields */ }Expand description
A gate backed by an external process.
Implementations§
Trait Implementations§
Source§impl Clone for SubprocessGate
impl Clone for SubprocessGate
Source§fn clone(&self) -> SubprocessGate
fn clone(&self) -> SubprocessGate
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 SubprocessGate
impl Debug for SubprocessGate
Source§impl Gate for SubprocessGate
impl Gate for SubprocessGate
Source§fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 ModelRequest,
resp: &'life2 ModelResponse,
) -> Pin<Box<dyn Future<Output = GateResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 ModelRequest,
resp: &'life2 ModelResponse,
) -> Pin<Box<dyn Future<Output = GateResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Evaluate the candidate response, producing a verdict + evidence.
Auto Trait Implementations§
impl Freeze for SubprocessGate
impl RefUnwindSafe for SubprocessGate
impl Send for SubprocessGate
impl Sync for SubprocessGate
impl Unpin for SubprocessGate
impl UnsafeUnpin for SubprocessGate
impl UnwindSafe for SubprocessGate
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