Struct OneshotReceiver
pub struct OneshotReceiver<T>(/* private fields */);Expand description
The receiving half of a channel returned by oneshot.
A value is received by polling or awaiting the channel.
Trait Implementations§
§impl<T> Debug for OneshotReceiver<T>
 
impl<T> Debug for OneshotReceiver<T>
§impl<T> DefaultEncoding for OneshotReceiver<T>where
    T: MeshField,
 
impl<T> DefaultEncoding for OneshotReceiver<T>where
    T: MeshField,
§impl<T> Drop for OneshotReceiver<T>
 
impl<T> Drop for OneshotReceiver<T>
§impl<T> From<OneshotReceiver<T>> for Portwhere
    T: MeshField,
 
impl<T> From<OneshotReceiver<T>> for Portwhere
    T: MeshField,
§fn from(receiver: OneshotReceiver<T>) -> Port
 
fn from(receiver: OneshotReceiver<T>) -> Port
Converts to this type from the input type.
§impl<T> From<Port> for OneshotReceiver<T>where
    T: MeshField,
 
impl<T> From<Port> for OneshotReceiver<T>where
    T: MeshField,
§fn from(port: Port) -> OneshotReceiver<T> ⓘ
 
fn from(port: Port) -> OneshotReceiver<T> ⓘ
Converts to this type from the input type.
§impl<T> Future for OneshotReceiver<T>
 
impl<T> Future for OneshotReceiver<T>
§fn poll(
    self: Pin<&mut OneshotReceiver<T>>,
    cx: &mut Context<'_>,
) -> Poll<<OneshotReceiver<T> as Future>::Output>
 
fn poll( self: Pin<&mut OneshotReceiver<T>>, cx: &mut Context<'_>, ) -> Poll<<OneshotReceiver<T> as Future>::Output>
Attempts to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. Read more
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
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§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