pub struct Insert<'r, C: Connection, R> { /* private fields */ }
Expand description
An insert future
Implementations§
Source§impl<C, R> Insert<'_, C, R>where
C: Connection,
impl<C, R> Insert<'_, C, R>where
C: Connection,
Sourcepub fn into_owned(self) -> Insert<'static, C, R>
pub fn into_owned(self) -> Insert<'static, C, R>
Converts to an owned type which can easily be moved to a different thread
Source§impl<'r, C, R> Insert<'r, C, R>where
C: Connection,
R: DeserializeOwned,
impl<'r, C, R> Insert<'r, C, R>where
C: Connection,
R: DeserializeOwned,
Trait Implementations§
Source§impl<'r, Client, R> IntoFuture for Insert<'r, Client, Option<R>>where
Client: Connection,
R: DeserializeOwned,
impl<'r, Client, R> IntoFuture for Insert<'r, Client, Option<R>>where
Client: Connection,
R: DeserializeOwned,
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Insert<'r, Client, Option<R>> as IntoFuture>::Output> + Send + Sync + 'r>>
type IntoFuture = Pin<Box<dyn Future<Output = <Insert<'r, Client, Option<R>> as IntoFuture>::Output> + Send + Sync + 'r>>
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
Source§impl<'r, Client> IntoFuture for Insert<'r, Client, Value>where
Client: Connection,
impl<'r, Client> IntoFuture for Insert<'r, Client, Value>where
Client: Connection,
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Insert<'r, Client, Value> as IntoFuture>::Output> + Send + Sync + 'r>>
type IntoFuture = Pin<Box<dyn Future<Output = <Insert<'r, Client, Value> as IntoFuture>::Output> + Send + Sync + 'r>>
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
Source§impl<'r, Client, R> IntoFuture for Insert<'r, Client, Vec<R>>where
Client: Connection,
R: DeserializeOwned,
impl<'r, Client, R> IntoFuture for Insert<'r, Client, Vec<R>>where
Client: Connection,
R: DeserializeOwned,
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Insert<'r, Client, Vec<R>> as IntoFuture>::Output> + Send + Sync + 'r>>
type IntoFuture = Pin<Box<dyn Future<Output = <Insert<'r, Client, Vec<R>> as IntoFuture>::Output> + Send + Sync + 'r>>
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<'r, C, R> Freeze for Insert<'r, C, R>
impl<'r, C, R> !RefUnwindSafe for Insert<'r, C, R>
impl<'r, C, R> Send for Insert<'r, C, R>where
R: Send,
impl<'r, C, R> Sync for Insert<'r, C, R>where
R: Sync,
impl<'r, C, R> Unpin for Insert<'r, C, R>
impl<'r, C, R> !UnwindSafe for Insert<'r, C, R>
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