Function egg_mode::invalidate_bearer [] [src]

pub fn invalidate_bearer<'a>(
    handle: &'a Handle,
    con_token: &KeyPair,
    token: &Token
) -> TwitterFuture<'a, Token>

Invalidate the given Bearer token using the given consumer KeyPair. Upon success, the future returned by this function yields the Token that was just invalidated.

Panics

If this function is handed a Token that is not a Bearer token, this function will panic.