Struct twilight_http::request::user::GetCurrentUser
source · pub struct GetCurrentUser<'a> { /* private fields */ }Expand description
Get information about the current user.
Implementations§
source§impl<'a> GetCurrentUser<'a>
impl<'a> GetCurrentUser<'a>
sourcepub fn exec(self) -> ResponseFuture<CurrentUser> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<CurrentUser> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl IntoFuture for GetCurrentUser<'_>
impl IntoFuture for GetCurrentUser<'_>
§type Output = Result<Response<CurrentUser>, Error>
type Output = Result<Response<CurrentUser>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<CurrentUser>
type IntoFuture = ResponseFuture<CurrentUser>
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