Enum serenity_rich_interaction::menu::Page [−][src]
pub enum Page<'b> {
Builder(MessageBuilderFn<'b>),
Static(CreateMessage<'b>),
}
Expand description
A page that stores a builder function for message pages or static pages
Variants
Builder(MessageBuilderFn<'b>)
Tuple Fields of Builder
0: MessageBuilderFn<'b>
Static(CreateMessage<'b>)
Tuple Fields of Static
0: CreateMessage<'b>
Implementations
pub fn new_builder<F: 'static>(builder_fn: F) -> Self where
F: Fn() -> MessageBuildOutput<'b> + Send + Sync,
pub fn new_builder<F: 'static>(builder_fn: F) -> Self where
F: Fn() -> MessageBuildOutput<'b> + Send + Sync,
Creates a new page with the given builder function that creates a page each time it is accessed
Creates a new page with a static message
Returns the CreateMessage of the page
Trait Implementations
Auto Trait Implementations
impl<'b> !RefUnwindSafe for Page<'b>
impl<'b> !UnwindSafe for Page<'b>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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