pub struct ShardRunnerOptions {
pub data: Arc<RwLock<TypeMap>>,
pub event_handlers: Vec<Arc<dyn EventHandler>>,
pub raw_event_handlers: Vec<Arc<dyn RawEventHandler>>,
pub framework: Option<Arc<dyn Framework>>,
pub manager: Arc<ShardManager>,
pub shard: Shard,
pub cache: Arc<Cache>,
pub http: Arc<Http>,
}Expand description
Options to be passed to ShardRunner::new.
Fields§
§data: Arc<RwLock<TypeMap>>§event_handlers: Vec<Arc<dyn EventHandler>>§raw_event_handlers: Vec<Arc<dyn RawEventHandler>>§framework: Option<Arc<dyn Framework>>§manager: Arc<ShardManager>§shard: Shard§cache: Arc<Cache>§http: Arc<Http>Auto Trait Implementations§
impl !Freeze for ShardRunnerOptions
impl !RefUnwindSafe for ShardRunnerOptions
impl Send for ShardRunnerOptions
impl Sync for ShardRunnerOptions
impl Unpin for ShardRunnerOptions
impl !UnwindSafe for ShardRunnerOptions
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