pub struct ComponentInteractionHandler<T: Clone + Send + Sync> {
pub module: String,
pub custom_id: String,
pub func: fn(ComponentInteractionContext<T>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>,
}Fields§
§module: String§custom_id: String§func: fn(ComponentInteractionContext<T>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ComponentInteractionHandler<T>
impl<T> RefUnwindSafe for ComponentInteractionHandler<T>
impl<T> Send for ComponentInteractionHandler<T>
impl<T> Sync for ComponentInteractionHandler<T>
impl<T> Unpin for ComponentInteractionHandler<T>
impl<T> UnwindSafe for ComponentInteractionHandler<T>
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