Struct teloxide_core::payloads::LogOut
source · pub struct LogOut {}
Expand description
Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters.
Implementations§
Trait Implementations§
source§impl PartialEq<LogOut> for LogOut
impl PartialEq<LogOut> for LogOut
source§impl Payload for LogOut
impl Payload for LogOut
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.impl Eq for LogOut
impl StructuralEq for LogOut
impl StructuralPartialEq for LogOut
Auto Trait Implementations§
impl RefUnwindSafe for LogOut
impl Send for LogOut
impl Sync for LogOut
impl Unpin for LogOut
impl UnwindSafe for LogOut
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.