Struct slack_morphism_hyper::listener::SlackClientEventsHyperListener [−][src]
pub struct SlackClientEventsHyperListener<H: 'static + Send + Sync + Connect + Clone> {
pub environment: Arc<SlackClientEventsListenerEnvironment<SlackClientHyperConnector<H>>>,
}
Fields
environment: Arc<SlackClientEventsListenerEnvironment<SlackClientHyperConnector<H>>>
Implementations
pub fn command_events_service_fn<'a, D, F>(
&self,
config: Arc<SlackCommandEventsListenerConfig>,
command_service_fn: UserCallbackFunction<SlackCommandEvent, impl Future<Output = UserCallbackResult<SlackCommandEventResponse>> + 'static + Send, SlackClientHyperConnector<H>>
) -> impl Fn(Request<Body>, D) -> BoxFuture<'a, Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send + Clone where
D: Fn(Request<Body>) -> F + 'a + Send + Sync + Clone,
F: Future<Output = Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send,
pub fn interaction_events_service_fn<'a, D, F>(
&self,
config: Arc<SlackInteractionEventsListenerConfig>,
interaction_service_fn: UserCallbackFunction<SlackInteractionEvent, impl Future<Output = UserCallbackResult<()>> + 'static + Send, SlackClientHyperConnector<H>>
) -> impl Fn(Request<Body>, D) -> BoxFuture<'a, Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send + Clone where
D: Fn(Request<Body>) -> F + 'a + Send + Sync + Clone,
F: Future<Output = Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send,
pub fn oauth_service_fn<'a, D, F>(
&self,
config: Arc<SlackOAuthListenerConfig>,
install_service_fn: UserCallbackFunction<SlackOAuthV2AccessTokenResponse, impl Future<Output = ()> + 'static + Send, SlackClientHyperConnector<H>>
) -> impl Fn(Request<Body>, D) -> BoxFuture<'a, Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send + Clone where
D: Fn(Request<Body>) -> F + 'a + Send + Sync + Clone,
F: Future<Output = Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send,
pub fn push_events_service_fn<'a, D, F>(
&self,
config: Arc<SlackPushEventsListenerConfig>,
push_service_fn: UserCallbackFunction<SlackPushEvent, impl Future<Output = UserCallbackResult<()>> + 'static + Send, SlackClientHyperConnector<H>>
) -> impl Fn(Request<Body>, D) -> BoxFuture<'a, Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send + Clone where
D: Fn(Request<Body>) -> F + 'a + Send + Sync + Clone,
F: Future<Output = Result<Response<Body>, Box<dyn Error + Send + Sync + 'a>>> + 'a + Send,
pub fn new(
environment: Arc<SlackClientEventsListenerEnvironment<SlackClientHyperConnector<H>>>
) -> Self
Auto Trait Implementations
impl<H> !RefUnwindSafe for SlackClientEventsHyperListener<H>
impl<H> Send for SlackClientEventsHyperListener<H>
impl<H> Sync for SlackClientEventsHyperListener<H>
impl<H> Unpin for SlackClientEventsHyperListener<H>
impl<H> !UnwindSafe for SlackClientEventsHyperListener<H>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more