Struct futures_intrusive::channel::shared::ChannelSendFuture
source · pub struct ChannelSendFuture<MutexType, T> { /* private fields */ }
Expand description
A Future that is returned by the send
function on a channel.
The future gets resolved with None
when a value could be
written to the channel.
If the channel gets closed the send operation will fail, and the
Future will resolve to ChannelSendError(T)
and return the item
to send.
Implementations
sourceimpl<MutexType, T> ChannelSendFuture<MutexType, T>
impl<MutexType, T> ChannelSendFuture<MutexType, T>
Trait Implementations
sourceimpl<MutexType, T> Debug for ChannelSendFuture<MutexType, T>
impl<MutexType, T> Debug for ChannelSendFuture<MutexType, T>
sourceimpl<MutexType, T> Drop for ChannelSendFuture<MutexType, T>
impl<MutexType, T> Drop for ChannelSendFuture<MutexType, T>
sourceimpl<MutexType, T> FusedFuture for ChannelSendFuture<MutexType, T>
impl<MutexType, T> FusedFuture for ChannelSendFuture<MutexType, T>
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.sourceimpl<MutexType, T> Future for ChannelSendFuture<MutexType, T>
impl<MutexType, T> Future for ChannelSendFuture<MutexType, T>
type Output = Result<(), ChannelSendError<T>>
type Output = Result<(), ChannelSendError<T>>
The type of value produced on completion.
impl<MutexType: Sync, T: Send> Send for ChannelSendFuture<MutexType, T>
Auto Trait Implementations
impl<MutexType, T> !RefUnwindSafe for ChannelSendFuture<MutexType, T>
impl<MutexType, T> !Sync for ChannelSendFuture<MutexType, T>
impl<MutexType, T> !Unpin for ChannelSendFuture<MutexType, T>
impl<MutexType, T> !UnwindSafe for ChannelSendFuture<MutexType, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more