pub enum ShardQueuerMessage {
Start(ShardId, ShardId),
Shutdown,
ShutdownShard(ShardId, u16),
}
Expand description
A message to be sent to the ShardQueuer
.
Variants§
Start(ShardId, ShardId)
Message to start a shard, where the 0-index element is the ID of the Shard to start and the 1-index element is the total shards in use.
Shutdown
Message to shutdown the shard queuer.
ShutdownShard(ShardId, u16)
Message to dequeue/shutdown a shard.
Trait Implementations§
Source§impl Clone for ShardQueuerMessage
impl Clone for ShardQueuerMessage
Source§fn clone(&self) -> ShardQueuerMessage
fn clone(&self) -> ShardQueuerMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ShardQueuerMessage
impl RefUnwindSafe for ShardQueuerMessage
impl Send for ShardQueuerMessage
impl Sync for ShardQueuerMessage
impl Unpin for ShardQueuerMessage
impl UnwindSafe for ShardQueuerMessage
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