pub enum RemoteMobError {
UnsupportedTransport {
mob_id: String,
transport: String,
},
ControlChannelUnavailable {
mob_id: String,
endpoint: String,
operation: &'static str,
},
Rejected {
mob_id: String,
endpoint: String,
code: String,
message: String,
},
Encode {
endpoint: String,
message: String,
},
Decode {
endpoint: String,
message: String,
},
}Expand description
Errors raised by the remote-mob proxy.
Variants§
UnsupportedTransport
The contact directory entry uses an unsupported transport.
The cross-process control channel for this peer mob is not
reachable: connect failed, write/read failed, or the peer timed
out. The operation field reports which RPC stage hit the wall.
Rejected
The peer rejected our request with an error response. Carries the
peer’s stable code (e.g. unknown_member, mob_error) and a
human-readable message.
Encode
We failed to encode the request payload — usually a programmer error (un-serializable JSON value passed in).
Decode
We received a response we couldn’t decode — peer is speaking a different protocol or sent corrupted data.
Trait Implementations§
Source§impl Clone for RemoteMobError
impl Clone for RemoteMobError
Source§fn clone(&self) -> RemoteMobError
fn clone(&self) -> RemoteMobError
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 RemoteMobError
impl Debug for RemoteMobError
Source§impl Display for RemoteMobError
impl Display for RemoteMobError
impl Eq for RemoteMobError
Source§impl Error for RemoteMobError
impl Error for RemoteMobError
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<RemoteMobError> for CrossMobError
impl From<RemoteMobError> for CrossMobError
Source§fn from(err: RemoteMobError) -> Self
fn from(err: RemoteMobError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemoteMobError
impl PartialEq for RemoteMobError
Source§fn eq(&self, other: &RemoteMobError) -> bool
fn eq(&self, other: &RemoteMobError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RemoteMobError
Auto Trait Implementations§
impl Freeze for RemoteMobError
impl RefUnwindSafe for RemoteMobError
impl Send for RemoteMobError
impl Sync for RemoteMobError
impl Unpin for RemoteMobError
impl UnsafeUnpin for RemoteMobError
impl UnwindSafe for RemoteMobError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more