Struct twilight_http::request::user::CreatePrivateChannel
source · pub struct CreatePrivateChannel<'a> { /* private fields */ }
Expand description
Create a DM channel with a user.
Implementations
sourceimpl<'a> CreatePrivateChannel<'a>
impl<'a> CreatePrivateChannel<'a>
pub fn exec(self) -> ResponseFuture<Channel> ⓘ
👎Deprecated since 0.14.0: use
.await
or into_future
insteadTrait Implementations
sourceimpl IntoFuture for CreatePrivateChannel<'_>
impl IntoFuture for CreatePrivateChannel<'_>
type Output = Result<Response<Channel>, Error>
type Output = Result<Response<Channel>, Error>
The output that the future will produce on completion.
type IntoFuture = ResponseFuture<Channel>
type IntoFuture = ResponseFuture<Channel>
Which kind of future are we turning this into?
sourcefn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
sourceimpl TryIntoRequest for CreatePrivateChannel<'_>
impl TryIntoRequest for CreatePrivateChannel<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreatePrivateChannel<'a>
impl<'a> Send for CreatePrivateChannel<'a>
impl<'a> Sync for CreatePrivateChannel<'a>
impl<'a> Unpin for CreatePrivateChannel<'a>
impl<'a> !UnwindSafe for CreatePrivateChannel<'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