pub struct BraveBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl SearchBackend for BraveBackend
impl SearchBackend for BraveBackend
fn name(&self) -> &'static str
Source§fn endpoint(&self) -> Option<&str>
fn endpoint(&self) -> Option<&str>
The URL this backend sends queries to, for the call’s declared egress.
None when it is not known (the call is then undeclared).fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
max_results: usize,
freshness: Option<Freshness>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SearchResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for BraveBackend
impl !UnwindSafe for BraveBackend
impl Forget for BraveBackend
impl Freeze for BraveBackendwhere
*const ArcInner<ClientRef> is !null: Freeze,
PhantomData<ArcInner<ClientRef>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for BraveBackend
impl Send for BraveBackend
impl Sync for BraveBackend
impl Unpin for BraveBackend
impl UnsafeUnpin for BraveBackendwhere
*const ArcInner<ClientRef> is !null: UnsafeUnpin,
PhantomData<ArcInner<ClientRef>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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