pub struct NonEmptyGate;Expand description
Fails an empty (whitespace-only) completion. The cheapest possible sanity gate.
Trait Implementations§
Source§impl Clone for NonEmptyGate
impl Clone for NonEmptyGate
Source§fn clone(&self) -> NonEmptyGate
fn clone(&self) -> NonEmptyGate
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 moreimpl Copy for NonEmptyGate
Source§impl Debug for NonEmptyGate
impl Debug for NonEmptyGate
Source§impl Gate for NonEmptyGate
impl Gate for NonEmptyGate
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 NonEmptyGate
impl RefUnwindSafe for NonEmptyGate
impl Send for NonEmptyGate
impl Sync for NonEmptyGate
impl Unpin for NonEmptyGate
impl UnsafeUnpin for NonEmptyGate
impl UnwindSafe for NonEmptyGate
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