We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688522a commit d08dd2bCopy full SHA for d08dd2b
tonic/src/transport/error.rs
@@ -1,3 +1,4 @@
1
+use crate::BoxError;
2
use std::{error::Error as StdError, fmt};
3
4
type Source = Box<dyn StdError + Send + Sync + 'static>;
@@ -90,3 +91,9 @@ impl StdError for Error {
90
91
.map(|source| &**source as &(dyn StdError + 'static))
92
}
93
94
+
95
+impl From<BoxError> for Error {
96
+ fn from(value: BoxError) -> Self {
97
+ Self::from_source(value)
98
+ }
99
+}
0 commit comments