pub struct CliActionSender { /* private fields */ }Expand description
Chat action sender that reports indicators as outbound action lines.
Implementations§
Trait Implementations§
Source§impl ChatActionSender for CliActionSender
impl ChatActionSender for CliActionSender
Source§fn send_action(
&self,
action: ChatAction,
) -> impl ChatActionFutureBounds<Output = Result<(), BotError>> + '_
fn send_action( &self, action: ChatAction, ) -> impl ChatActionFutureBounds<Output = Result<(), BotError>> + '_
Send a chat action to the specified channel
Source§fn action_expiry(&self) -> Duration
fn action_expiry(&self) -> Duration
Duration after which the action indicator expires Read more
Source§fn clear_action(
&self,
) -> impl ChatActionFutureBounds<Output = Result<(), BotError>> + '_
fn clear_action( &self, ) -> impl ChatActionFutureBounds<Output = Result<(), BotError>> + '_
Clear the indicator early Read more
Source§impl Clone for CliActionSender
impl Clone for CliActionSender
Source§fn clone(&self) -> CliActionSender
fn clone(&self) -> CliActionSender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CliActionSender
impl RefUnwindSafe for CliActionSender
impl Send for CliActionSender
impl Sync for CliActionSender
impl Unpin for CliActionSender
impl UnsafeUnpin for CliActionSender
impl UnwindSafe for CliActionSender
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