Skip to main content

G2gError

Enum G2gError 

Source
#[non_exhaustive]
pub enum G2gError { CapsMismatch, NotConfigured, FixationFailed, PoolExhausted, UnsupportedDomain, AllocationConflict, Hardware(HardwareError), Shutdown, CopyBudget, InputRefused, ControlBinding, Timeout, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CapsMismatch

Phase 1: no non-empty intersection between proposed upstream caps and this element’s supported caps.

§

NotConfigured

Element received a DataFrame before configure_pipeline succeeded.

§

FixationFailed

Phase 2: caller should retry Phase 1 with the proposal returned in ConfigureOutcome::ReFixate.

§

PoolExhausted

Buffer pool exhausted; transient, retry after upstream drain.

§

UnsupportedDomain

A MemoryDomain variant was handed to an element that cannot consume it.

§

AllocationConflict

Two branches of a fan-out (a tee’s diamond) proposed allocation parameters with no common memory domain, so there is no pool the shared producer can allocate that satisfies both. The negotiation fails loud rather than silently honouring one branch and copying for the other.

§

Hardware(HardwareError)

Backend-specific hardware or driver failure.

§

Shutdown

Pipeline is shutting down; element should drain and propagate Eos.

§

CopyBudget

A CopyPolicy enforced on the graph was violated: the negotiated pipeline performs more memory-domain frame copies (device<->host or cross-device transfers of a raw buffer) than the budget allows. Raised before any frame flows, so a pipeline that must stay zero-copy refuses to start rather than paying the copy at runtime. Inspect copy_plan for the offending transfers.

§

InputRefused

A fan-in element refused an input added at runtime (MultiInputElement::accepts_runtime_input): it has no pad for that source, so the add fails and the run continues on the inputs it already has.

§

ControlBinding

An animated property binding (M882) does not fit the element it was attached to: an unknown or non-animatable property name (raised at startup, before any frame flows), or a sampled value the element refused mid-run. The offending node and property are named on the log’s runtime category.

§

Timeout

No data reached an element within the time it was given: the watchdog transform’s timeout elapsed with the stream stalled.

Trait Implementations§

Source§

impl Clone for G2gError

Source§

fn clone(&self) -> G2gError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for G2gError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for G2gError

Source§

impl PartialEq for G2gError

Source§

fn eq(&self, other: &G2gError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for G2gError

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ElementBound for T
where T: Send,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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, <T as TryFrom<U>>::Error>

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.