Struct twilight_http::request::user::GetCurrentUser
source · [−]pub struct GetCurrentUser<'a> { /* private fields */ }
Expand description
Get information about the current user.
Implementations
sourceimpl<'a> GetCurrentUser<'a>
impl<'a> GetCurrentUser<'a>
sourcepub fn exec(self) -> ResponseFuture<CurrentUser>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<CurrentUser>ⓘ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 GetCurrentUser<'_>
impl TryIntoRequest for GetCurrentUser<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetCurrentUser<'a>
impl<'a> Send for GetCurrentUser<'a>
impl<'a> Sync for GetCurrentUser<'a>
impl<'a> Unpin for GetCurrentUser<'a>
impl<'a> !UnwindSafe for GetCurrentUser<'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