Struct twilight_gateway::shard::Config [−][src]
pub struct Config { /* fields omitted */ }
Expand description
The configuration used by the shard to identify with the gateway and operate.
Use Shard::builder
to start creating a configured shard.
Implementations
Copy of the event type flags.
Return an immutable reference to the url used to connect to the gateway.
Return an immutable reference to the twilight_http
client to be used
by the shard.
Return the maximum threshold at which point the gateway will stop sending a guild’s member list in Guild Create events.
Return an immutable reference to the presence to set when identifying with the gateway.
This will be the bot’s presence. For example, setting the online status to Do Not Disturb will show the status in the bot’s presence.
The shard’s ID and the total number of shards used by the bot.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl !UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. 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
pub fn vzip(self) -> V