pub struct PreparedShard { /* private fields */ }Expand description
Everything needed to run a shard on a specific runtime.
Created by prepare_shard without spawning any tasks. The caller
is responsible for passing this to run_prepared on the desired
tokio runtime — this is the hook that enables thread-per-core
deployment where each worker thread runs its own shard.
Auto Trait Implementations§
impl Freeze for PreparedShard
impl !RefUnwindSafe for PreparedShard
impl Send for PreparedShard
impl Sync for PreparedShard
impl Unpin for PreparedShard
impl UnsafeUnpin for PreparedShard
impl !UnwindSafe for PreparedShard
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