pub struct NoopAiService;Expand description
Refuses every request.
The default for a product with AI features switched off, and for anything that must not silently reach the network. It fails rather than returning an empty answer: a feature that quietly produces nothing is harder to diagnose than one that says it is unavailable.
Trait Implementations§
Source§impl AiService for NoopAiService
impl AiService for NoopAiService
Source§impl Clone for NoopAiService
impl Clone for NoopAiService
Source§fn clone(&self) -> NoopAiService
fn clone(&self) -> NoopAiService
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 NoopAiService
Source§impl Debug for NoopAiService
impl Debug for NoopAiService
Source§impl Default for NoopAiService
impl Default for NoopAiService
Source§fn default() -> NoopAiService
fn default() -> NoopAiService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopAiService
impl RefUnwindSafe for NoopAiService
impl Send for NoopAiService
impl Sync for NoopAiService
impl Unpin for NoopAiService
impl UnsafeUnpin for NoopAiService
impl UnwindSafe for NoopAiService
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