pub struct Switch {
pub socket_id: MessageId,
pub chans: HashMap<String, HashSet<usize>>,
pub share_chans: HashMap<String, HashSet<usize>>,
pub slot_ids: HashMap<MessageId, usize>,
pub socket_ids: HashMap<MessageId, usize>,
pub slots: Slab<Slot>,
pub send_num: Cell<usize>,
pub recv_num: Cell<usize>,
// some fields omitted
}
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,