Enum interchange::State
source · #[repr(u8)]pub enum State {
Idle = 0,
BuildingRequest = 1,
Requested = 2,
BuildingResponse = 3,
Responded = 4,
Canceled = 12,
}
Expand description
State of the RPC interchange
Variants§
Idle = 0
The requester may send a new request.
BuildingRequest = 1
The requester is building a request, using the pre-allocated static data as &mut Request
Requested = 2
The request is pending either processing by responder or cancelation by requester.
BuildingResponse = 3
The responder is building a response, using the pre-allocated static data as &mut Response It may opportunitstically be canceled by requester.
Responded = 4
The responder sent a response.
Canceled = 12
Trait Implementations§
source§impl PartialEq for State
impl PartialEq for State
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more