@@ -30,14 +30,14 @@ stability_scope!(ALPHA {
3030 /// 1. `on_startup` once (receives [`Actor::Args`] data).
3131 /// 2. Per iteration: `preprocess`, then race lanes against
3232 /// `on_external` for one event. If a message is received (`Some`),
33- /// dispatch to `on_readonly ` (concurrent) or `on_read_write` (serial),
33+ /// dispatch to `on_read_only ` (concurrent) or `on_read_write` (serial),
3434 /// then `postprocess`. If the source
3535 /// yields `None` (lane closed or `on_external` exhaustion), skip
3636 /// directly to `on_shutdown`.
3737 /// 3. `on_shutdown` once, on graceful exit (runtime stop, lane closure,
3838 /// or `on_external` returning `None`).
3939 ///
40- /// Returning `Err` from `on_readonly ` or `on_read_write` is fatal: the error is logged,
40+ /// Returning `Err` from `on_read_only ` or `on_read_write` is fatal: the error is logged,
4141 /// remaining in-flight reads are drained, and then `on_shutdown` is called
4242 /// before the loop exits.
4343 pub trait Actor <E >: Send + ' static {
@@ -54,7 +54,7 @@ stability_scope!(ALPHA {
5454 /// `<MailboxName>Message`.
5555 type Ingress : IntoIngressEnvelope ;
5656
57- /// Fatal error type returned by [`Actor::on_readonly `] and [`Actor::on_read_write`].
57+ /// Fatal error type returned by [`Actor::on_read_only `] and [`Actor::on_read_write`].
5858 ///
5959 /// Returning `Err` from read/write handlers logs the error and stops the
6060 /// actor.
@@ -89,7 +89,7 @@ stability_scope!(ALPHA {
8989 ///
9090 /// Called on: runtime shutdown signal, lane closure,
9191 /// [`Actor::on_external`] returning `None`, or after a fatal handler
92- /// error from [`Actor::on_readonly `] or [`Actor::on_read_write`].
92+ /// error from [`Actor::on_read_only `] or [`Actor::on_read_write`].
9393 fn on_shutdown(
9494 & mut self ,
9595 _context: & mut E ,
@@ -114,7 +114,7 @@ stability_scope!(ALPHA {
114114 /// Create a snapshot for handling read-only ingress concurrently.
115115 ///
116116 /// The service loop captures this snapshot when a read-only message is
117- /// admitted, then executes [`Actor::on_readonly `] in a spawned task.
117+ /// admitted, then executes [`Actor::on_read_only `] in a spawned task.
118118 ///
119119 /// This must be cheap to create. Prefer `Arc`-backed structures or
120120 /// `Copy` types. Avoid deep cloning large data structures, as
@@ -131,11 +131,13 @@ stability_scope!(ALPHA {
131131 /// Returning `Err` is fatal: the service loop logs the error, drains
132132 /// remaining in-flight reads, and then calls [`Actor::on_shutdown`]
133133 /// before exiting.
134- fn on_readonly(
135- context: E ,
136- snapshot: Self :: Snapshot ,
137- message: <Self :: Ingress as IntoIngressEnvelope >:: ReadOnlyIngress ,
138- ) -> impl Future <Output = Result <( ) , Self :: Error >> + Send ;
134+ fn on_read_only(
135+ _context: E ,
136+ _snapshot: Self :: Snapshot ,
137+ _message: <Self :: Ingress as IntoIngressEnvelope >:: ReadOnlyIngress ,
138+ ) -> impl Future <Output = Result <( ) , Self :: Error >> + Send {
139+ futures:: future:: pending( )
140+ }
139141
140142 /// Handle one ingress message that may mutate actor state.
141143 ///
@@ -148,10 +150,12 @@ stability_scope!(ALPHA {
148150 /// before exiting.
149151 fn on_read_write(
150152 & mut self ,
151- context: & mut E ,
152- args: & mut Self :: Args ,
153- message: <Self :: Ingress as IntoIngressEnvelope >:: ReadWriteIngress ,
154- ) -> impl Future <Output = Result <( ) , Self :: Error >> + Send ;
153+ _context: & mut E ,
154+ _args: & mut Self :: Args ,
155+ _message: <Self :: Ingress as IntoIngressEnvelope >:: ReadWriteIngress ,
156+ ) -> impl Future <Output = Result <( ) , Self :: Error >> + Send {
157+ futures:: future:: pending( )
158+ }
155159
156160 /// Poll external per-iteration sources and map them to ingress.
157161 ///
0 commit comments