File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ impl BlockSourceError {
132
132
}
133
133
134
134
/// Converts the error into the underlying error.
135
+ ///
136
+ /// May contain an [`std::io::Error`] from the [`BlockSource`]. See implementations for further
137
+ /// details, if any.
135
138
pub fn into_inner ( self ) -> Box < dyn std:: error:: Error + Send + Sync > {
136
139
self . error
137
140
}
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ impl RpcClient {
57
57
}
58
58
59
59
/// Calls a method with the response encoded in JSON format and interpreted as type `T`.
60
+ ///
61
+ /// When an `Err` is returned, [`std::io::Error::into_inner`] may contain an [`RpcError`] if
62
+ /// [`std::io::Error::kind`] is [`std::io::ErrorKind::Other`].
60
63
pub async fn call_method < T > ( & self , method : & str , params : & [ serde_json:: Value ] ) -> std:: io:: Result < T >
61
64
where JsonResponse : TryFrom < Vec < u8 > , Error = std:: io:: Error > + TryInto < T , Error = std:: io:: Error > {
62
65
let host = format ! ( "{}:{}" , self . endpoint. host( ) , self . endpoint. port( ) ) ;
You can’t perform that action at this time.
0 commit comments