pub struct DeferredCtx<S, D = ApplicationCommandInteractionData> { /* private fields */ }Available on crate feature
rest only.Expand description
What deferred Background Work sees: an owned, 'static copy of the Interaction and State
Implementations§
Source§impl<S: Platform, D> DeferredCtx<S, D>
impl<S: Platform, D> DeferredCtx<S, D>
Sourcepub fn interaction(&self) -> &DataInteraction<D>
pub fn interaction(&self) -> &DataInteraction<D>
The Interaction being answered
Sourcepub fn channel_id(&self) -> Option<Snowflake>
pub fn channel_id(&self) -> Option<Snowflake>
The channel it was invoked in
Sourcepub fn client(&self) -> InteractionClient<S::Transport>
pub fn client(&self) -> InteractionClient<S::Transport>
Follow-ups and the original response of this Interaction
Trait Implementations§
Auto Trait Implementations§
impl<S, D> Freeze for DeferredCtx<S, D>
impl<S, D> RefUnwindSafe for DeferredCtx<S, D>
impl<S, D> Send for DeferredCtx<S, D>
impl<S, D> Sync for DeferredCtx<S, D>
impl<S, D> Unpin for DeferredCtx<S, D>
impl<S, D> UnsafeUnpin for DeferredCtx<S, D>
impl<S, D> UnwindSafe for DeferredCtx<S, D>
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