pub fn try_recv(&mut self) -> Result<T, TryRecvError> {
        let result = if let Some(inner) = self.inner.as_ref() {
            let state = State::load(&inner.state, Acquire);

            if state.is_complete() {
                match unsafe { inner.consume_value() } {
                    Some(value) => Ok(value),
                    None => Err(TryRecvError(())),
                }
            } else if state.is_closed() {
                Err(TryRecvError(()))
            } else {
                // Not ready, this does not clear `inner`
                return Err(TryRecvError(()));
            }
        } else {
            panic!("called after complete");
        };

        self.inner = None;
        result
    }
/// Attempts to receive a value outside of the context of a task.
///
/// Does not register a task if no value has been sent.
///
/// A return value of `None` must be considered immediately stale (out of
/// date) unless [`close`] has been called first.
///
/// Returns an error if the sender was dropped.
///
/// [`close`]: #method.close
Attempts to receive a value outside of the context of a task.
Does not register a task if no value has been sent.

A return value of `None` must be considered immediately stale (out of
date) unless [`close`] has been called first.

Returns an error if the sender was dropped.


Attempts to receive a value outside of the context of a task . Does not register a task if no value has been sent . A return value of ` None ` must be considered immediately stale ( out of date ) unless [ ` close ` ] has been called first . Returns an error if the sender was dropped .
pub fn try_recv(&mut self) -> Result<T, TryRecvError> {
        let result = if let Some(inner) = self.inner.as_ref() {
            let state = State::load(&inner.state, Acquire);
            if state.is_complete() {
                match unsafe { inner.consume_value() } {
                    Some(value) => Ok(value),
                    None => Err(TryRecvError(())),
                }
            } else if state.is_closed() {
                Err(TryRecvError(()))
            } else {
                // Not ready, this does not clear `inner`
                return Err(TryRecvError(()));
            }
        } else {
            panic!("called after complete");
        };
        self.inner = None;
        result
    }
pub fn try_recv ( & mut self ) -> Result < T , TryRecvError > { let result = if let Some ( inner ) = self . inner . as_ref ( ) { let state = State :: load ( & inner . state , Acquire ) ; if state . is_complete ( ) { match unsafe { inner . consume_value ( ) } { Some ( value ) => Ok ( value ) , None => Err ( TryRecvError ( ( ) ) ) , } } else if state . is_closed ( ) { Err ( TryRecvError ( ( ) ) ) } else { // Not ready, this does not clear `inner` return Err ( TryRecvError ( ( ) ) ) ; } } else { panic ! ( " " ) ; } ; self . inner = None ; result }
Attempts to receive a value outside of the context of a task.
Attempts to receive a value outside of the context of a task .
&mut self