pub struct RoutingObservationRejection<Observation, Reason> {
pub observation: Observation,
pub reason: Reason,
}Expand description
One policy observation returned with its concrete rejection reason.
The policy consumes an observation only on acceptance. Rejection transfers
that exact owned value back to Router, which retains it in
RouterError::Policy while discarding the uncommitted policy candidate.
Fields§
§observation: ObservationExact observation that the policy could not accept.
reason: ReasonConcrete reason the policy rejected that observation.
Auto Trait Implementations§
impl<Observation, Reason> Freeze for RoutingObservationRejection<Observation, Reason>
impl<Observation, Reason> RefUnwindSafe for RoutingObservationRejection<Observation, Reason>where
Observation: RefUnwindSafe,
Reason: RefUnwindSafe,
impl<Observation, Reason> Send for RoutingObservationRejection<Observation, Reason>
impl<Observation, Reason> Sync for RoutingObservationRejection<Observation, Reason>
impl<Observation, Reason> Unpin for RoutingObservationRejection<Observation, Reason>
impl<Observation, Reason> UnsafeUnpin for RoutingObservationRejection<Observation, Reason>where
Observation: UnsafeUnpin,
Reason: UnsafeUnpin,
impl<Observation, Reason> UnwindSafe for RoutingObservationRejection<Observation, Reason>where
Observation: UnwindSafe,
Reason: 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