pub struct SlackClientEventsListenerEnvironment<SCHC>{
pub client: Arc<SlackClient<SCHC>>,
pub error_handler: BoxedErrorHandler<SCHC>,
pub user_state: SlackClientEventsUserState,
}
Fields§
§client: Arc<SlackClient<SCHC>>
§error_handler: BoxedErrorHandler<SCHC>
§user_state: SlackClientEventsUserState
Implementations§
Source§impl<SCHC> SlackClientEventsListenerEnvironment<SCHC>
impl<SCHC> SlackClientEventsListenerEnvironment<SCHC>
pub fn new(client: Arc<SlackClient<SCHC>>) -> Self
pub fn with_error_handler(self, error_handler: ErrorHandler<SCHC>) -> Self
pub fn with_user_state<T: Send + Sync + 'static>(self, state: T) -> Self
Auto Trait Implementations§
impl<SCHC> Freeze for SlackClientEventsListenerEnvironment<SCHC>
impl<SCHC> !RefUnwindSafe for SlackClientEventsListenerEnvironment<SCHC>
impl<SCHC> Send for SlackClientEventsListenerEnvironment<SCHC>
impl<SCHC> Sync for SlackClientEventsListenerEnvironment<SCHC>
impl<SCHC> Unpin for SlackClientEventsListenerEnvironment<SCHC>
impl<SCHC> !UnwindSafe for SlackClientEventsListenerEnvironment<SCHC>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more