pub struct DeviceMap {
pub types: &'static [&'static NamedType],
pub endpoints: &'static [(&'static str, Key, Key)],
pub topics_in: &'static [(&'static str, Key)],
pub topics_out: &'static [(&'static str, Key)],
pub min_key_len: VarKeyKind,
}
Expand description
An overview of all topics (in and out) and endpoints
Typically generated by the define_dispatch!()
macro. Contains a list
of all unique types across endpoints and topics, as well as the endpoints,
topics in (client to server), topics out (server to client), as well as a
calculated minimum key length required to avoid collisions in either the in
or out direction.
Fields§
§types: &'static [&'static NamedType]
The set of unique types used by all endpoints and topics in this map
endpoints: &'static [(&'static str, Key, Key)]
The list of endpoints by path string, request key, and response key
topics_in: &'static [(&'static str, Key)]
The list of topics (client to server) by path string and topic key
topics_out: &'static [(&'static str, Key)]
The list of topics (server to client) by path string and topic key
min_key_len: VarKeyKind
The minimum key size required to avoid hash collisions
Auto Trait Implementations§
impl Freeze for DeviceMap
impl RefUnwindSafe for DeviceMap
impl Send for DeviceMap
impl Sync for DeviceMap
impl Unpin for DeviceMap
impl UnwindSafe for DeviceMap
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