pub fn receive(
                &self,
                state_id: StateId,
            ) -> StateReceiveFuture<MutexType, T> {
                StateReceiveFuture {
                    channel: Some(self.inner.clone()),
                    wait_node: ListNode::new(RecvWaitQueueEntry::new(state_id)),
                    _phantom: PhantomData,
                }
            }
/// Returns a future that gets fulfilled when a value is written to the channel
/// or the channel is closed.
/// `state_id` specifies the minimum state ID that should be retrieved
/// by the `receive` operation.
///
/// The returned [`StateReceiveFuture`] will get fulfilled with the
/// retrieved value as well as the [`StateId`] which is required to retrieve
/// the following state
Returns a future that gets fulfilled when a value is written to the channel
or the channel is closed.
`state_id` specifies the minimum state ID that should be retrieved
by the `receive` operation.

The returned [`StateReceiveFuture`] will get fulfilled with the
retrieved value as well as the [`StateId`] which is required to retrieve
the following state
Returns a future that gets fulfilled when a value is written to the channel or the channel is closed . ` state_id ` specifies the minimum state ID that should be retrieved by the ` receive ` operation . The returned [ ` StateReceiveFuture ` ] will get fulfilled with the retrieved value as well as the [ ` StateId ` ] which is required to retrieve the following state
pub fn receive(
                &self,
                state_id: StateId,
            ) -> StateReceiveFuture<MutexType, T> {
                StateReceiveFuture {
                    channel: Some(self.inner.clone()),
                    wait_node: ListNode::new(RecvWaitQueueEntry::new(state_id)),
                    _phantom: PhantomData,
                }
            }
pub fn receive ( & self , state_id : StateId , ) -> StateReceiveFuture < MutexType , T > { StateReceiveFuture { channel : Some ( self . inner . clone ( ) ) , wait_node : ListNode :: new ( RecvWaitQueueEntry :: new ( state_id ) ) , _phantom : PhantomData , } }
Returns a future that gets fulfilled when a value is written to the channel
or the channel is closed.
Returns a future that gets fulfilled when a value is written to the channel or the channel is closed .
&self
state_id
StateId
&self
state_id
StateId