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