oxedyne/fe2o3/fe2o3_o3db_sync/src/comm/server.rs
436 bytes, 3 runs
created by r1870400018:773, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | use crate::{ |
| 2 | comm::channels::ChannelPool, |
| 3 | }; |
| 4 | |
| 5 | use oxedyne_fe2o3_jdat::id::NumIdDat; |
| 6 | |
| 7 | pub struct ServerChannels< |
| 8 | const UIDL: usize, |
| 9 | UID: NumIdDat<UIDL> + 'static, |
| 10 | > { |
| 11 | chans: ChannelPool<UIDL, UID, ENC, KH>, |
| 12 | } |
| 13 | |
| 14 | impl< |
| 15 | const UIDL: usize, |
| 16 | UID: NumIdDat<UIDL> + 'static, |
| 17 | > |
| 18 | ServerChannels<UIDL, UID> |
| 19 | { |
| 20 | pub fn update(&mut self, chans: ChannelPool<UIDL, UID, ENC, KH>) { |
| 21 | self.chans = chans; |
| 22 | } |
| 23 | } |