[][src]Enum vk_bot::core::Event

pub enum Event {
    MessageNew,
    MessageReply,
    MessageEdit,
    MessageTypingState,
    MessageAllow,
    MessageDeny,
    Start,
    ServiceAction,
    NoMatch,
}

Events that are supported for event handlers. See also Core::on.

Variants

MessageNew

Callback API: message_new.

MessageReply

Callback API: message_reply.

MessageEdit

Callback API: message_edit.

MessageTypingState

Callback API: message_typing_state.

MessageAllow

Callback API: message_allow.

MessageDeny

Callback API: message_deny.

Start

Generated instead of Event::MessageNew when start button was pressed.

ServiceAction

Generated instead of Event::MessageNew when the message is a service action message.

NoMatch

Generated when no matching handler for an event / payload / command / regex is found.

Trait Implementations

impl Clone for Event[src]

impl Copy for Event[src]

impl Debug for Event[src]

impl Display for Event[src]

impl Eq for Event[src]

impl FromStr for Event[src]

type Err = EventFromStrError

The associated error which can be returned from parsing.

impl Hash for Event[src]

impl PartialEq<Event> for Event[src]

impl StructuralEq for Event[src]

impl StructuralPartialEq for Event[src]

impl<'_> TryFrom<&'_ str> for Event[src]

type Error = <Event as FromStr>::Err

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,