pub struct Close { /* private fields */ }Expand description
Builder for the close method.
Closes the bot instance before moving it to another local server. Delete the webhook before calling this to prevent the bot from restarting. Returns error 429 in the first 10 minutes after launch.
Trait Implementations§
Source§impl IntoFuture for Close
impl IntoFuture for Close
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Close as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <Close as IntoFuture>::Output> + Send>>
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
Auto Trait Implementations§
impl !RefUnwindSafe for Close
impl !UnwindSafe for Close
impl Freeze for Close
impl Send for Close
impl Sync for Close
impl Unpin for Close
impl UnsafeUnpin for Close
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more