Skip to content

Commit 646b9eb

Browse files
Update src/lib.rs
Co-authored-by: Francesco Guardiani <francescoguard@gmail.com>
1 parent ff45fb6 commit 646b9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
//! - Create a trait with the service handlers.
6464
//! - Handlers can accept zero or one parameter and return a [`Result`].
6565
//! - The type of the input parameter of the handler needs to implement [`Serialize`](crate::serde::Deserialize) and [`Deserialize`](crate::serde::Deserialize). See [`crate::serde`].
66-
//! - The Result contains the return value or a [`HandlerError`][crate::errors::HandlerError], which can be a [`TerminalError`] or any other Rust's `StdError`.
66+
//! - The Result contains the return value or a [`HandlerError`][crate::errors::HandlerError], which can be a [`TerminalError`](crate::errors::TerminalError) or any other Rust's [`std::error::Error`].
6767
//! - The service handler can now be called at `<RESTATE_INGRESS_URL>/MyService/myHandler`. You can optionally override the handler name used via `#[name = "myHandler"]`. More details on handler invocations can be found in the [docs](https://docs.restate.dev/invoke/http).
6868
//! - Implement the trait on a struct. The struct will contain the actual implementation of the handlers.
6969
//! - The first parameter of a handler after `&self` is always a [`Context`](crate::context::Context) to interact with Restate.

0 commit comments

Comments
 (0)