Skip to main content

Refusal

Struct Refusal 

Source
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 str

What was done to the peer, for the violation message: "a push one byte over max_batch_bytes".

§declared: FailureClass

The 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§

Source§

impl<E: Debug> Debug for Refusal<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> Freeze for Refusal<E>
where Result<(), E>: Freeze,

§

impl<E> RefUnwindSafe for Refusal<E>
where Result<(), E>: RefUnwindSafe,

§

impl<E> Send for Refusal<E>
where Result<(), E>: Send,

§

impl<E> Sync for Refusal<E>
where Result<(), E>: Sync,

§

impl<E> Unpin for Refusal<E>
where Result<(), E>: Unpin,

§

impl<E> UnsafeUnpin for Refusal<E>
where Result<(), E>: UnsafeUnpin,

§

impl<E> UnwindSafe for Refusal<E>
where Result<(), E>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V