Struct twilight_http::request::GetGatewayAuthed
source · pub struct GetGatewayAuthed<'a> { /* private fields */ }Expand description
Get information about the gateway, authenticated as a bot user.
Returns additional information: the recommended number of shards to use, and information on the current session start limit.
Implementations§
source§impl<'a> GetGatewayAuthed<'a>
impl<'a> GetGatewayAuthed<'a>
sourcepub fn exec(self) -> ResponseFuture<BotConnectionInfo> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<BotConnectionInfo> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl IntoFuture for GetGatewayAuthed<'_>
impl IntoFuture for GetGatewayAuthed<'_>
§type Output = Result<Response<BotConnectionInfo>, Error>
type Output = Result<Response<BotConnectionInfo>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<BotConnectionInfo>
type IntoFuture = ResponseFuture<BotConnectionInfo>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more