pub struct SlackSocketModeListenerCallbacks<SCHC> where
SCHC: SlackClientHttpConnector + Send + Sync, {
pub hello_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackSocketModeHelloEvent, ()> + Send + Sync>,
pub command_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackCommandEvent, UserCallbackResult<SlackCommandEventResponse>> + Send + Sync>,
pub interaction_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackInteractionEvent, UserCallbackResult<()>> + Send + Sync>,
pub push_events_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackPushEventCallback, UserCallbackResult<()>> + Send + Sync>,
}
Fields
hello_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackSocketModeHelloEvent, ()> + Send + Sync>
command_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackCommandEvent, UserCallbackResult<SlackCommandEventResponse>> + Send + Sync>
interaction_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackInteractionEvent, UserCallbackResult<()>> + Send + Sync>
push_events_callback: Box<dyn SlackSocketModeListenerCallback<SCHC, SlackPushEventCallback, UserCallbackResult<()>> + Send + Sync>
Implementations
sourceimpl<SCHC> SlackSocketModeListenerCallbacks<SCHC> where
SCHC: SlackClientHttpConnector + Send + Sync + 'static,
impl<SCHC> SlackSocketModeListenerCallbacks<SCHC> where
SCHC: SlackClientHttpConnector + Send + Sync + 'static,
pub fn new() -> Self
pub fn with_hello_events<F>(
self,
hello_events_fn: UserCallbackFunction<SlackSocketModeHelloEvent, F, SCHC>
) -> Self where
F: Future<Output = ()> + Send + 'static,
pub fn with_command_events<F>(
self,
command_events_fn: UserCallbackFunction<SlackCommandEvent, F, SCHC>
) -> Self where
F: Future<Output = UserCallbackResult<SlackCommandEventResponse>> + Send + 'static,
pub fn with_interaction_events<F>(
self,
interaction_events_fn: UserCallbackFunction<SlackInteractionEvent, F, SCHC>
) -> Self where
F: Future<Output = UserCallbackResult<()>> + Send + 'static,
pub fn with_push_events<F>(
self,
push_events_fn: UserCallbackFunction<SlackPushEventCallback, F, SCHC>
) -> Self where
F: Future<Output = UserCallbackResult<()>> + Send + 'static,
Auto Trait Implementations
impl<SCHC> !RefUnwindSafe for SlackSocketModeListenerCallbacks<SCHC>
impl<SCHC> Send for SlackSocketModeListenerCallbacks<SCHC>
impl<SCHC> Sync for SlackSocketModeListenerCallbacks<SCHC>
impl<SCHC> Unpin for SlackSocketModeListenerCallbacks<SCHC>
impl<SCHC> !UnwindSafe for SlackSocketModeListenerCallbacks<SCHC>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more