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<C, T> Import<'_, C, T>where
C: Connection,
impl<C, T> Import<'_, 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> + Sync + Send + 'r>>
type IntoFuture = Pin<Box<dyn Future<Output = <Import<'r, Client, T> as IntoFuture>::Output> + Sync + Send + '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>where
T: RefUnwindSafe,
C: RefUnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more