pub struct PinnedQuery<'a, T>(/* private fields */);Expand description
Request pinned to one instance, returned by Query::instance.
It takes neither .on_master nor .bucket_id:
ⓘ
let _ = c.query("SELECT 1", &[]).instance("i1").bucket_id(1).await;ⓘ
let _ = c.query("SELECT 1", &[]).instance("i1").on_master(false).await;Trait Implementations§
Source§impl<'a, T> IntoFuture for PinnedQuery<'a, T>where
Query<'a, T>: IntoFuture,
impl<'a, T> IntoFuture for PinnedQuery<'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 PinnedQuery<'a, T>
impl<'a, T> !UnwindSafe for PinnedQuery<'a, T>
impl<'a, T> Freeze for PinnedQuery<'a, T>
impl<'a, T> Send for PinnedQuery<'a, T>
impl<'a, T> Sync for PinnedQuery<'a, T>
impl<'a, T> Unpin for PinnedQuery<'a, T>
impl<'a, T> UnsafeUnpin for PinnedQuery<'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