You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -213,7 +230,7 @@ The mailbox uses the destination `PortId` to locate the bound port in its intern
213
230
214
231
3. Deserialization and Delivery Attempt
215
232
```rust
216
-
matchentry.get().send_serialized(data)
233
+
matchentry.get().send_serialized(headers, data)
217
234
```
218
235
If the port is found, the message is unsealed and passed to the corresponding `SerializedSender` (e.g., the `UnboundedSender` inserted during binding). This may succeed or fail:
219
236
-`Ok(true)`: Message was delivered.
@@ -276,7 +293,7 @@ There are two distinct pathways by which a message can arrive at a `PortReceiver
276
293
When you call `.send(msg)` on a `PortHandle<M>`, the message bypasses the `Mailbox` entirely and goes directly into the associated channel:
277
294
```text
278
295
PortHandle<M>::send(msg)
279
-
→ UnboundedPortSender<M>::send(msg)
296
+
→ UnboundedPortSender<M>::send(Attrs::new(), msg)
280
297
→ underlying channel (mpsc::UnboundedSender<M>)
281
298
→ PortReceiver<M>::recv().await
282
299
```
@@ -287,8 +304,8 @@ When a message is wrapped in a `MessageEnvelope` and posted via `Mailbox::post`,
287
304
```text
288
305
Mailbox::post(envelope, return_handle)
289
306
→ lookup State::ports[port_index]
290
-
→ SerializedSender::send_serialized(bytes)
291
-
→ UnboundedSender::send(M) // after deserialization
0 commit comments