State::from_settings rustdoc

This commit is contained in:
Alejandro Cabeza Romero 2024-12-30 13:16:15 +01:00
parent bef6f8c5c2
commit 085943b000
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD

View File

@ -20,7 +20,8 @@ pub trait ServiceState: Sized {
type Settings;
/// Errors that can occur during state initialization
type Error;
/// Initialize a state using the provided settings
/// Initialize a state using the provided settings.
/// This is called when [StateOperator::try_load] doesn't return a state.
fn from_settings(settings: &Self::Settings) -> Result<Self, Self::Error>;
}