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§
type Error: RetryableError + 'static
Required Methods§
Sourcefn 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,
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>
impl<T> XmtpQuery for Box<T>
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,
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
type Error = <T as XmtpQuery>::Error
Source§impl<T> XmtpQuery for Arc<T>
impl<T> XmtpQuery for Arc<T>
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,
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