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