Skip to main content

PushError

Struct PushError 

Source
pub struct PushError<V, B, C>
where V: Identities,
{ pub reason: PushRefusal<V>, pub buffer: Option<B>, pub context: C, }
Expand description

A refused push hands back what it was given: the buffer (None for a registered-span operation, which has none) and the consumer’s context – a backend’s refusal included, which hands its submission back whole (DI-D-52).

Fields§

§reason: PushRefusal<V>

Why it was refused.

§buffer: Option<B>

The buffer it took, or None for a registered-span operation.

§context: C

The consumer’s context.

Trait Implementations§

Source§

impl<V, B, C> Debug for PushError<V, B, C>
where V: Debug + Identities, B: Debug, C: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<V, B, C> !RefUnwindSafe for PushError<V, B, C>

§

impl<V, B, C> !UnwindSafe for PushError<V, B, C>

§

impl<V, B, C> Freeze for PushError<V, B, C>
where PushRefusal<V>: Freeze, Option<B>: Freeze, C: Freeze,

§

impl<V, B, C> Send for PushError<V, B, C>
where PushRefusal<V>: Send, Option<B>: Send, C: Send,

§

impl<V, B, C> Sync for PushError<V, B, C>
where PushRefusal<V>: Sync, Option<B>: Sync, C: Sync,

§

impl<V, B, C> Unpin for PushError<V, B, C>
where PushRefusal<V>: Unpin, Option<B>: Unpin, C: Unpin,

§

impl<V, B, C> UnsafeUnpin for PushError<V, B, C>

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
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.

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.