pub enum HostedRpcError {
Dispatch(String),
Transport(String),
}Expand description
Error returned by HostedRpcChannel::call when an RPC fails.
Variants§
Dispatch(String)
The owner-side dispatcher returned an error string (unknown method, codec error, panic in the user method, …).
Transport(String)
The IPC transport itself failed (worker disconnected, framing error, runtime not in spawn-workers mode, …).
Trait Implementations§
Source§impl Clone for HostedRpcError
impl Clone for HostedRpcError
Source§fn clone(&self) -> HostedRpcError
fn clone(&self) -> HostedRpcError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostedRpcError
impl Debug for HostedRpcError
Source§impl Display for HostedRpcError
impl Display for HostedRpcError
Source§impl Error for HostedRpcError
impl Error for HostedRpcError
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()
Auto Trait Implementations§
impl Freeze for HostedRpcError
impl RefUnwindSafe for HostedRpcError
impl Send for HostedRpcError
impl Sync for HostedRpcError
impl Unpin for HostedRpcError
impl UnsafeUnpin for HostedRpcError
impl UnwindSafe for HostedRpcError
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