add from impl

This commit is contained in:
Al Liu 2023-11-09 13:14:43 +08:00
parent e33089d6dd
commit 54cdd12603
No known key found for this signature in database
GPG Key ID: C8AE9A6E0166923E
1 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,12 @@ impl ServiceError {
} }
} }
impl From<super::DynError> for ServiceError {
fn from(err: super::DynError) -> Self {
Self::Service(err)
}
}
pub enum ServiceRuntime { pub enum ServiceRuntime {
FromParent(runtime::Handle), FromParent(runtime::Handle),
Custom(runtime::Runtime), Custom(runtime::Runtime),