Struct twilight_http::request::channel::stage::GetStageInstance
source · pub struct GetStageInstance<'a> { /* private fields */ }
Expand description
Gets the stage instance associated with a stage channel, if it exists.
Implementations
sourceimpl<'a> GetStageInstance<'a>
impl<'a> GetStageInstance<'a>
sourcepub fn exec(self) -> ResponseFuture<StageInstance> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<StageInstance> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl IntoFuture for GetStageInstance<'_>
impl IntoFuture for GetStageInstance<'_>
type Output = Result<Response<StageInstance>, Error>
type Output = Result<Response<StageInstance>, Error>
The output that the future will produce on completion.
type IntoFuture = ResponseFuture<StageInstance>
type IntoFuture = ResponseFuture<StageInstance>
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 GetStageInstance<'_>
impl TryIntoRequest for GetStageInstance<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetStageInstance<'a>
impl<'a> Send for GetStageInstance<'a>
impl<'a> Sync for GetStageInstance<'a>
impl<'a> Unpin for GetStageInstance<'a>
impl<'a> !UnwindSafe for GetStageInstance<'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