pub struct OneshotReceiver<T>(/* private fields */);
Expand description
The receiving half of a channel returned by oneshot
.
A value is received by poll
ing or await
ing the channel.
Trait Implementations§
Source§impl<T> Debug for OneshotReceiver<T>
impl<T> Debug for OneshotReceiver<T>
Source§impl<T> DefaultEncoding for OneshotReceiver<T>where
T: MeshField,
impl<T> DefaultEncoding for OneshotReceiver<T>where
T: MeshField,
Source§impl<T> Drop for OneshotReceiver<T>
impl<T> Drop for OneshotReceiver<T>
Source§impl<T> From<OneshotReceiver<T>> for Portwhere
T: MeshField,
impl<T> From<OneshotReceiver<T>> for Portwhere
T: MeshField,
Source§fn from(receiver: OneshotReceiver<T>) -> Port
fn from(receiver: OneshotReceiver<T>) -> Port
Converts to this type from the input type.
Source§impl<T> Future for OneshotReceiver<T>
impl<T> Future for OneshotReceiver<T>
Auto Trait Implementations§
impl<T> Freeze for OneshotReceiver<T>
impl<T> !RefUnwindSafe for OneshotReceiver<T>
impl<T> Send for OneshotReceiver<T>where
T: Send,
impl<T> Sync for OneshotReceiver<T>where
T: Send,
impl<T> Unpin for OneshotReceiver<T>
impl<T> !UnwindSafe for OneshotReceiver<T>
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more