[][src]Struct augdom::testing::Until

pub struct Until<'query, 'find, 'pat, 'node, N> { /* fields omitted */ }

A query which resolves asynchronously

Implementations

impl<'query, 'find, 'pat, 'node, N> Until<'query, 'find, 'pat, 'node, N> where
    N: Dom
[src]

pub async fn one<'_>(&'_ self) -> Option<N>[src]

Wait until the query can succeed then return the only matching node in the queried subtree.

Panics

If more than one matching node is found.

pub async fn many<'_>(&'_ self) -> Vec<N>[src]

Wait until the query can succeed then return a Vec of matching nodes in the queried subtree.

Auto Trait Implementations

impl<'query, 'find, 'pat, 'node, N> RefUnwindSafe for Until<'query, 'find, 'pat, 'node, N> where
    N: RefUnwindSafe

impl<'query, 'find, 'pat, 'node, N> Send for Until<'query, 'find, 'pat, 'node, N> where
    N: Sync

impl<'query, 'find, 'pat, 'node, N> Sync for Until<'query, 'find, 'pat, 'node, N> where
    N: Sync

impl<'query, 'find, 'pat, 'node, N> Unpin for Until<'query, 'find, 'pat, 'node, N> where
    'find: 'query,
    'node: 'query,
    'pat: 'query, 

impl<'query, 'find, 'pat, 'node, N> UnwindSafe for Until<'query, 'find, 'pat, 'node, N> where
    N: RefUnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> 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.