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 +219,7 @@ The mailbox uses the destination `PortId` to locate the bound port in its intern
213
219
214
220
3. Deserialization and Delivery Attempt
215
221
```rust
216
-
matchentry.get().send_serialized(data)
222
+
matchentry.get().send_serialized(headers, data)
217
223
```
218
224
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
225
-`Ok(true)`: Message was delivered.
@@ -276,7 +282,7 @@ There are two distinct pathways by which a message can arrive at a `PortReceiver
276
282
When you call `.send(msg)` on a `PortHandle<M>`, the message bypasses the `Mailbox` entirely and goes directly into the associated channel:
277
283
```text
278
284
PortHandle<M>::send(msg)
279
-
→ UnboundedPortSender<M>::send(msg)
285
+
→ UnboundedPortSender<M>::send(Attrs::new(), msg)
280
286
→ underlying channel (mpsc::UnboundedSender<M>)
281
287
→ PortReceiver<M>::recv().await
282
288
```
@@ -287,8 +293,8 @@ When a message is wrapped in a `MessageEnvelope` and posted via `Mailbox::post`,
287
293
```text
288
294
Mailbox::post(envelope, return_handle)
289
295
→ lookup State::ports[port_index]
290
-
→ SerializedSender::send_serialized(bytes)
291
-
→ UnboundedSender::send(M) // after deserialization
0 commit comments