Skip to main content

PublicAPIResponseReceiver

Type Alias PublicAPIResponseReceiver 

Source
pub type PublicAPIResponseReceiver = BroadcastReceiver<ArcAPIResponse>;
Expand description

Client 与具体使用者之间
API响应的接收通道
公开,任何人都可持有

Aliased Type§

pub struct PublicAPIResponseReceiver { /* private fields */ }

Trait Implementations§

Source§

impl APIResponseListener for PublicAPIResponseReceiver

Source§

fn listen<'life0, 'async_trait>( &'life0 mut self, echo: String, timeout: Option<Duration>, ) -> Pin<Box<dyn Future<Output = Option<ArcAPIResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn listen_without_timeout<'life0, 'async_trait>( &'life0 mut self, echo: String, ) -> Pin<Box<dyn Future<Output = Option<ArcAPIResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn listen_with_timeout<'life0, 'async_trait>( &'life0 mut self, echo: String, timeout: Duration, ) -> Pin<Box<dyn Future<Output = Option<ArcAPIResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,