Enum interchange::State[][src]

#[repr(u8)]
pub enum State {
    Idle,
    BuildingRequest,
    Requested,
    BuildingResponse,
    Responded,
    Canceled,
    // some variants omitted
}

State of the RPC interchange

Variants

Idle

The requester may send a new request.

BuildingRequest

The requester is building a request, using the pre-allocated static data as &mut Request

Requested

The request is pending either processing by responder or cancelation by requester.

BuildingResponse

The responder is building a response, using the pre-allocated static data as &mut Response It may opportunitstically be canceled by requester.

Responded

The responder sent a response.

Canceled

The requester canceled the request. Responder needs to acknowledge to return to Idle state.

Trait Implementations

impl Clone for State[src]

impl Copy for State[src]

impl Debug for State[src]

impl From<u8> for State[src]

impl PartialEq<State> for State[src]

impl PartialEq<u8> for State[src]

impl StructuralPartialEq for State[src]

Auto Trait Implementations

impl Send for State

impl Sync for State

impl Unpin for State

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, U> Into<U> for T where
    U: From<T>, 
[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.