Enum interchange::State
source · #[repr(u8)]
pub enum State {
Idle,
BuildingRequest,
Requested,
BuildingResponse,
Responded,
Canceled,
// some variants omitted
}
Expand description
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.