pub struct RejectionHandlerResponse {
pub events: Option<EventBook>,
pub notification: Option<Notification>,
}Expand description
Response from rejection handlers.
Handlers may return:
- Events to compensate/fix state
- Notification to forward upstream
- Both
Fields§
§events: Option<EventBook>Events to persist (compensation).
notification: Option<Notification>Notification to forward upstream.
Trait Implementations§
Source§impl Default for RejectionHandlerResponse
impl Default for RejectionHandlerResponse
Source§fn default() -> RejectionHandlerResponse
fn default() -> RejectionHandlerResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RejectionHandlerResponse
impl RefUnwindSafe for RejectionHandlerResponse
impl Send for RejectionHandlerResponse
impl Sync for RejectionHandlerResponse
impl Unpin for RejectionHandlerResponse
impl UnsafeUnpin for RejectionHandlerResponse
impl UnwindSafe for RejectionHandlerResponse
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request