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.
Trait Implementations
sourceimpl PartialEq<State> for State
impl PartialEq<State> for State
sourceimpl PartialEq<u8> for State
impl PartialEq<u8> for State
impl Copy for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more