XmtpQuery

Trait XmtpQuery 

Source
pub trait XmtpQuery: MaybeSend + MaybeSync {
    type Error: RetryableError + 'static;

    // Required method
    fn query_at<'life0, 'async_trait>(
        &'life0 self,
        topic: Topic,
        at: Option<GlobalCursor>,
    ) -> Pin<Box<dyn Future<Output = Result<XmtpEnvelope, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

matching the cursor criteria given.

Required Associated Types§

Source

type Error: RetryableError + 'static

Required Methods§

Source

fn query_at<'life0, 'async_trait>( &'life0 self, topic: Topic, at: Option<GlobalCursor>, ) -> Pin<Box<dyn Future<Output = Result<XmtpEnvelope, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Query every Topic at GlobalCursor

Implementations on Foreign Types§

Source§

impl<T> XmtpQuery for Box<T>
where T: XmtpQuery + ?Sized,

Source§

fn query_at<'life0, 'async_trait>( &'life0 self, topic: Topic, at: Option<GlobalCursor>, ) -> Pin<Box<dyn Future<Output = Result<XmtpEnvelope, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Query every Topic at GlobalCursor

Source§

type Error = <T as XmtpQuery>::Error

Source§

impl<T> XmtpQuery for Arc<T>
where T: XmtpQuery + ?Sized,

Source§

fn query_at<'life0, 'async_trait>( &'life0 self, topic: Topic, at: Option<GlobalCursor>, ) -> Pin<Box<dyn Future<Output = Result<XmtpEnvelope, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Query every Topic at GlobalCursor

Source§

type Error = <T as XmtpQuery>::Error

Implementors§

Source§

impl<C, Store, E> XmtpQuery for D14nClient<C, Store>
where C: Client<Error = E>, ApiClientError<E>: From<ApiClientError<<C as Client>::Error>>, E: RetryableError + 'static, Store: CursorStore,

Source§

impl<C, Store, E> XmtpQuery for V3Client<C, Store>
where C: Client<Error = E>, E: RetryableError + 'static, ApiClientError<E>: From<ApiClientError<<C as Client>::Error>>, Store: CursorStore,

Source§

impl<C: XmtpQuery> XmtpQuery for BoxedStreamsClient<C>

Source§

impl<C: XmtpQuery> XmtpQuery for TrackedStatsClient<C>