pub struct AlwaysAttach(pub ShardId);Expand description
A router that sends everyone to the same shard.
The honest default for a runtime with one entry point, and what a lobby looks like: the flavor decides where anyone goes next, which is a migration rather than a routing decision.
Tuple Fields§
§0: ShardIdTrait Implementations§
Source§impl Clone for AlwaysAttach
impl Clone for AlwaysAttach
Source§fn clone(&self) -> AlwaysAttach
fn clone(&self) -> AlwaysAttach
Returns a duplicate 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 moreSource§impl ConnectionRouter for AlwaysAttach
impl ConnectionRouter for AlwaysAttach
Source§async fn route(
&self,
_connection: ConnectionId,
_identity: &ConnectionIdentity,
) -> RouteDecision
async fn route( &self, _connection: ConnectionId, _identity: &ConnectionIdentity, ) -> RouteDecision
Decide where this connection belongs. Read more
Source§impl Debug for AlwaysAttach
impl Debug for AlwaysAttach
impl Copy for AlwaysAttach
Auto Trait Implementations§
impl Freeze for AlwaysAttach
impl RefUnwindSafe for AlwaysAttach
impl Send for AlwaysAttach
impl Sync for AlwaysAttach
impl Unpin for AlwaysAttach
impl UnwindSafe for AlwaysAttach
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