Struct serenity::client::Extras [−][src]
pub struct Extras { /* fields omitted */ }
Expand description
A builder to extra things for altering the Client
.
Implementations
Set the handler for managing discord events.
pub fn raw_event_handler<H>(&mut self, handler: H) -> &mut Self where
H: RawEventHandler + 'static,
pub fn raw_event_handler<H>(&mut self, handler: H) -> &mut Self where
H: RawEventHandler + 'static,
Set the handler for raw events.
If you have set the specialised Self::event_handler
, all events
will be cloned for use to the raw event handler.
Set the framework.
Set the duration the library is permitted to update the cache before giving up acquiring a write-lock.
This can be useful for avoiding deadlocks, but it also may invalidate your cache.
Set what Discord gateway events shall be received.
By default, no intents are being used and all events are received.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Extras
impl !UnwindSafe for Extras
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self