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