Enum augdom::testing::QueryError[][src]

pub enum QueryError<'a, N> {
    Missing {
        lookup: &'a dyn Debug,
    },
    Timeout {
        lookup: &'a dyn Debug,
    },
    TooMany {
        matched: N,
        extra: Vec<N>,
        lookup: &'a dyn Debug,
    },
}

The outcome of a failed query.

Variants

Missing

Couldn’t find any matching nodes.

Fields of Missing

lookup: &'a dyn Debug

the original query

Timeout

Couldn’t find any matching nodes in the time allotted.

Fields of Timeout

lookup: &'a dyn Debug

the original query

TooMany

Found more nodes than the 1 requested.

Fields of TooMany

matched: N

the first node we found

extra: Vec<N>

unexpected nodes

lookup: &'a dyn Debug

the original query

Trait Implementations

impl<'a, N: Debug> Debug for QueryError<'a, N>[src]

Auto Trait Implementations

impl<'a, N> !RefUnwindSafe for QueryError<'a, N>

impl<'a, N> !Send for QueryError<'a, N>

impl<'a, N> !Sync for QueryError<'a, N>

impl<'a, N> Unpin for QueryError<'a, N> where
    N: Unpin

impl<'a, N> !UnwindSafe for QueryError<'a, N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsContext for T where
    T: Debug + 'static, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.