pub struct ShardManagerContainer;Expand description
TypeMap key for the shared shard manager.
Registered alongside crate::expand::github::HttpClient so the ping command
can read the gateway heartbeat latency for the shard handling this event.
Trait Implementations§
Source§impl TypeMapKey for ShardManagerContainer
impl TypeMapKey for ShardManagerContainer
Source§type Value = Arc<ShardManager>
type Value = Arc<ShardManager>
Defines the value type that corresponds to this
TypeMapKey.Auto Trait Implementations§
impl Freeze for ShardManagerContainer
impl RefUnwindSafe for ShardManagerContainer
impl Send for ShardManagerContainer
impl Sync for ShardManagerContainer
impl Unpin for ShardManagerContainer
impl UnsafeUnpin for ShardManagerContainer
impl UnwindSafe for ShardManagerContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more