pub enum BreakerMessage<Route> {
Admit {
reply_to: Route,
},
Succeeded {
attempt: BreakerAttempt,
},
Failed {
attempt: BreakerAttempt,
},
}Expand description
Closed user-command protocol.
Variants§
Admit
Request one operation admission.
Fields
§
reply_to: RouteSucceeded
Report successful completion of an admitted operation.
Fields
§
attempt: BreakerAttemptFailed
Report failed completion of an admitted operation.
Fields
§
attempt: BreakerAttemptAuto Trait Implementations§
impl<Route> Freeze for BreakerMessage<Route>where
Route: Freeze,
impl<Route> RefUnwindSafe for BreakerMessage<Route>where
Route: RefUnwindSafe,
impl<Route> Send for BreakerMessage<Route>where
Route: Send,
impl<Route> Sync for BreakerMessage<Route>where
Route: Sync,
impl<Route> Unpin for BreakerMessage<Route>where
Route: Unpin,
impl<Route> UnsafeUnpin for BreakerMessage<Route>where
Route: UnsafeUnpin,
impl<Route> UnwindSafe for BreakerMessage<Route>where
Route: UnwindSafe,
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