pub struct RoutedDeviceMsg {
pub entity_id: String,
pub msg: DeviceMsg,
}Expand description
Envelope used by the sharding adapter. Wraps an underlying
DeviceMsg with the entity id the caller wants the message to be
routed by. The adapter’s MessageExtractor reads entity_id to
pick the destination shard / device.
Fields§
§entity_id: String§msg: DeviceMsgAuto Trait Implementations§
impl Freeze for RoutedDeviceMsg
impl !RefUnwindSafe for RoutedDeviceMsg
impl Send for RoutedDeviceMsg
impl !Sync for RoutedDeviceMsg
impl Unpin for RoutedDeviceMsg
impl UnsafeUnpin for RoutedDeviceMsg
impl !UnwindSafe for RoutedDeviceMsg
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