[][src]Struct xaynet_server::state_machine::requests::RequestReceiver

pub struct RequestReceiver(_);

The receiver half of the Request channel that is used by the StateMachine to receive requests.

Implementations

impl RequestReceiver[src]

pub fn new() -> (Self, RequestSender)[src]

Creates a new Request channel and returns the RequestReceiver as well as the RequestSender half.

pub fn close(&mut self)[src]

Closes the Request channel. See the tokio documentation for more information.

pub async fn recv(
    &mut self
) -> Option<(StateMachineRequest, Span, Sender<StateMachineResult>)>
[src]

Receives the next request. See the tokio documentation for more information.

pub fn try_recv(
    &mut self
) -> Result<(StateMachineRequest, Span, Sender<StateMachineResult>), TryRecvError>
[src]

Try to retrieve the next request without blocked See the tokio documentation for more information.

Trait Implementations

impl Debug for RequestReceiver[src]

impl From<UnboundedReceiver<(StateMachineRequest, Span, Sender<Result<(), RequestError>>)>> for RequestReceiver[src]

impl Stream for RequestReceiver[src]

type Item = (StateMachineRequest, Span, Sender<StateMachineResult>)

Values yielded by the stream.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> StreamExt for T where
    T: Stream + ?Sized

impl<S> StreamExt for S where
    S: Stream + ?Sized

impl<T> StreamExt for T where
    T: Stream + ?Sized

impl<St> StreamExt for St where
    St: Stream + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]