CanSendPoll

Trait CanSendPoll 

Source
pub trait CanSendPoll {
    // Required method
    fn poll<'q, 'o, 'e, Q, O>(
        &self,
        question: Q,
        options: Vec<O>,
    ) -> SendPoll<'q, 'o, 'e>
       where Q: Into<Cow<'q, str>>,
             O: Into<Cow<'o, str>>;
}
Expand description

Send message with a poll.

Required Methods§

Source

fn poll<'q, 'o, 'e, Q, O>( &self, question: Q, options: Vec<O>, ) -> SendPoll<'q, 'o, 'e>
where Q: Into<Cow<'q, str>>, O: Into<Cow<'o, str>>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> CanSendPoll for C
where C: ToChatRef,