mirror of
https://github.com/logos-co/Overwatch.git
synced 2025-01-21 20:08:56 +00:00
State::from_settings rustdoc
This commit is contained in:
parent
bef6f8c5c2
commit
085943b000
@ -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>;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user