pub enum ReplyError {
BrokenPromise,
ConnectionFailed,
Timeout,
Serialization {
message: String,
},
EndpointNotFound,
}Expand description
Errors that can occur during request-response operations.
These errors are serializable so they can be sent over the network (e.g., when a server sends a BrokenPromise error to the client).
Variants§
BrokenPromise
The server dropped the ReplyPromise without sending a response.
This typically indicates a bug in the server code - forgetting to reply before the promise goes out of scope.
ConnectionFailed
The network connection failed during the request.
The request may or may not have been delivered to the server.
Timeout
The request timed out waiting for a response.
The server may still be processing the request.
Serialization
Serialization or deserialization failed.
Contains a description of what went wrong.
EndpointNotFound
The endpoint was not found.
The destination endpoint is not registered.
Trait Implementations§
Source§impl Clone for ReplyError
impl Clone for ReplyError
Source§fn clone(&self) -> ReplyError
fn clone(&self) -> ReplyError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplyError
impl Debug for ReplyError
Source§impl<'de> Deserialize<'de> for ReplyError
impl<'de> Deserialize<'de> for ReplyError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ReplyError
impl Display for ReplyError
Source§impl Error for ReplyError
impl Error for ReplyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ReplyError> for RpcError
impl From<ReplyError> for RpcError
Source§fn from(err: ReplyError) -> Self
fn from(err: ReplyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReplyError
impl PartialEq for ReplyError
Source§impl Serialize for ReplyError
impl Serialize for ReplyError
impl Eq for ReplyError
impl StructuralPartialEq for ReplyError
Auto Trait Implementations§
impl Freeze for ReplyError
impl RefUnwindSafe for ReplyError
impl Send for ReplyError
impl Sync for ReplyError
impl Unpin for ReplyError
impl UnwindSafe for ReplyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more