pub struct RoutedQuery<'a, T>(/* private fields */);Expand description
Request routed by .on_master or .bucket_id, returned by Query::on_master and
Query::bucket_id. It takes no .instance:
c.query("SELECT 1", &[]).bucket_id(1).on_master(false).await?;
c.query("SELECT 1", &[]).on_master(false).bucket_id(1).await?;
c.query("SELECT 1", &[]).instance("i1").await?;ⓘ
let _ = c.query("SELECT 1", &[]).bucket_id(1).instance("i1").await;ⓘ
let _ = c.query("SELECT 1", &[]).on_master(false).instance("i1").await;Implementations§
Trait Implementations§
Source§impl<'a, T> IntoFuture for RoutedQuery<'a, T>where
Query<'a, T>: IntoFuture,
impl<'a, T> IntoFuture for RoutedQuery<'a, T>where
Query<'a, T>: IntoFuture,
Source§type Output = <Query<'a, T> as IntoFuture>::Output
type Output = <Query<'a, T> as IntoFuture>::Output
The output that the future will produce on completion.
Source§type IntoFuture = <Query<'a, T> as IntoFuture>::IntoFuture
type IntoFuture = <Query<'a, T> as IntoFuture>::IntoFuture
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for RoutedQuery<'a, T>
impl<'a, T> !UnwindSafe for RoutedQuery<'a, T>
impl<'a, T> Freeze for RoutedQuery<'a, T>
impl<'a, T> Send for RoutedQuery<'a, T>
impl<'a, T> Sync for RoutedQuery<'a, T>
impl<'a, T> Unpin for RoutedQuery<'a, T>
impl<'a, T> UnsafeUnpin for RoutedQuery<'a, T>where
Query<'a, T>: 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