pub struct Menu<'a> {
    pub message: Arc<RwLock<MessageHandle>>,
    pub pages: Vec<Page<'a>>,
    pub current_page: usize,
    pub timeout: Instant,
    pub sticky: bool,
    pub data: TypeMap,
    /* private fields */
}
Expand description

A menu message

Fields

message: Arc<RwLock<MessageHandle>>pages: Vec<Page<'a>>current_page: usizetimeout: Instantsticky: booldata: TypeMap

Implementations

Returns the current page of the menu

Returns the message of the menu

Recreates the message completely

Trait Implementations

Returns if a message has been frozen and won’t handle any further events

Fired periodically

Fired when a reaction was added to the message

Fired when the message was deleted

Fired when a reaction was removed from the message

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more