pub struct Refusal<E> {
pub provoked_by: &'static str,
pub declared: FailureClass,
pub outcome: Result<(), E>,
}Expand description
One refusal a fixture drove its peer into, and the class it declares for it.
Plain data with public fields: a fixture builds one per refusal and the rule only reads it.
Fields§
§provoked_by: &'static strWhat was done to the peer, for the violation message: "a push one byte over max_batch_bytes".
declared: FailureClassThe class the fixture says this refusal is.
outcome: Result<(), E>What the peer returned. Ok is a provocation the peer accepted, which
the rule reports rather than skips.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Refusal<E>
impl<E> RefUnwindSafe for Refusal<E>
impl<E> Send for Refusal<E>
impl<E> Sync for Refusal<E>
impl<E> Unpin for Refusal<E>
impl<E> UnsafeUnpin for Refusal<E>
impl<E> UnwindSafe for Refusal<E>
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