Struct heph_inbox::SendValue [−][src]
#[must_use = "futures do nothing unless you `.await` or poll them"]pub struct SendValue<'s, T> { /* fields omitted */ }
Expand description
Future
implementation behind Sender::send
.
Safety
It is not safe to leak this SendValue
(by using mem::forget
). Always
make sure the destructor is run, by calling drop
, or letting it go out
of scope.
Trait Implementations
impl<'s, T> Sync for SendValue<'s, T>
[src]
Auto Trait Implementations
impl<'s, T> !RefUnwindSafe for SendValue<'s, T>
impl<'s, T> Send for SendValue<'s, T> where
T: Send,
T: Send,
impl<'s, T> !Unpin for SendValue<'s, T>
impl<'s, T> !UnwindSafe for SendValue<'s, T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<F> IntoFuture for F where
F: Future,
[src]
impl<F> IntoFuture for F where
F: Future,
[src]type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.