Struct Remote
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Remote<Fut: Future> { /* private fields */ }
A future which sends its output to the corresponding RemoteHandle.
Created by remote_handle.
Trait Implementations
impl<'__pin, Fut: Future> Unpin for Remote<Fut>
where
PinnedFieldsOf<__Origin<'__pin, Fut>>: Unpin,
impl<Fut: Future + Debug> Debug for Remote<Fut>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Fut: Future> Future for Remote<Fut>
type Output = ();fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>
Auto Trait Implementations
impl<Fut> !RefUnwindSafe for Remote<Fut>
impl<Fut> !UnwindSafe for Remote<Fut>
impl<Fut> Freeze for Remote<Fut>
where
Option<Sender<Result<<Fut as Future>::Output, Box<dyn Any + Send>>>>: Freeze,
CatchUnwind<AssertUnwindSafe<Fut>>: Freeze,
impl<Fut> Send for Remote<Fut>
where
Option<Sender<Result<<Fut as Future>::Output, Box<dyn Any + Send>>>>: Send,
CatchUnwind<AssertUnwindSafe<Fut>>: Send,
impl<Fut> Sync for Remote<Fut>
where
Option<Sender<Result<<Fut as Future>::Output, Box<dyn Any + Send>>>>: Sync,
CatchUnwind<AssertUnwindSafe<Fut>>: Sync,
impl<Fut> UnsafeUnpin for Remote<Fut>
where
Option<Sender<Result<<Fut as Future>::Output, Box<dyn Any + Send>>>>: UnsafeUnpin,
CatchUnwind<AssertUnwindSafe<Fut>>: UnsafeUnpin,
Blanket Implementations
impl<F> IntoFuture for Remote<Fut>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for Remote<Fut>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Remote<Fut>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Remote<Fut>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Remote<Fut>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for Remote<Fut>
where
T: Future + ?Sized,
impl<T, U> Into<U> for Remote<Fut>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Remote<Fut>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Remote<Fut>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>