pub struct ShardPlane {
pub shard: ShardId,
pub routing: Receiver<Arc<AudioRouting>>,
}Expand description
Which shard a connection currently belongs to, and where its routes come from.
Replaced wholesale by a migration. The address, the key and the session are deliberately not in here: a migration must not disturb the UDP plane, and the surest way to guarantee that is for the fields it rewrites to be disjoint from the fields the UDP plane depends on.
Fields§
§shard: ShardId§routing: Receiver<Arc<AudioRouting>>Trait Implementations§
Source§impl Clone for ShardPlane
impl Clone for ShardPlane
Source§fn clone(&self) -> ShardPlane
fn clone(&self) -> ShardPlane
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 moreAuto Trait Implementations§
impl Freeze for ShardPlane
impl RefUnwindSafe for ShardPlane
impl Send for ShardPlane
impl Sync for ShardPlane
impl Unpin for ShardPlane
impl UnwindSafe for ShardPlane
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