Struct twilight_http::request::application::command::SetGlobalCommands
source · [−]pub struct SetGlobalCommands<'a> { /* private fields */ }
Expand description
Set global commands.
This method is idempotent: it can be used on every start, without being ratelimited if there aren’t changes to the commands.
The Command
struct has an associated builder in the
twilight-util
crate.
Implementations
sourceimpl<'a> SetGlobalCommands<'a>
impl<'a> SetGlobalCommands<'a>
sourcepub fn exec(self) -> ResponseFuture<ListBody<Command>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<ListBody<Command>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl TryIntoRequest for SetGlobalCommands<'_>
impl TryIntoRequest for SetGlobalCommands<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SetGlobalCommands<'a>
impl<'a> Send for SetGlobalCommands<'a>
impl<'a> Sync for SetGlobalCommands<'a>
impl<'a> Unpin for SetGlobalCommands<'a>
impl<'a> !UnwindSafe for SetGlobalCommands<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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