#[non_exhaustive]pub struct RemoteError {
pub kind: RemoteErrorKind,
pub message: String,
}Expand description
Typed remote-system error.
Construct via RemoteError::new, or via From<TransportError>
for transport-layer failures. Matches across kind are stable.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: RemoteErrorKind§message: StringImplementations§
Source§impl RemoteError
impl RemoteError
pub fn new(kind: RemoteErrorKind, message: impl Into<String>) -> Self
Sourcepub fn unknown_pdu(pdu: &AkkaPdu) -> Self
pub fn unknown_pdu(pdu: &AkkaPdu) -> Self
Construct an UnknownPdu error from a received PDU. Used in
place of panic!("unexpected pdu …") so production code never
crashes on a protocol mismatch.
pub fn quarantined(target: impl Display) -> Self
pub fn tombstoned(target: impl Display) -> Self
Trait Implementations§
Source§impl Debug for RemoteError
impl Debug for RemoteError
Source§impl Display for RemoteError
impl Display for RemoteError
Source§impl Error for RemoteError
impl Error for RemoteError
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<TransportError> for RemoteError
impl From<TransportError> for RemoteError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RemoteError
impl RefUnwindSafe for RemoteError
impl Send for RemoteError
impl Sync for RemoteError
impl Unpin for RemoteError
impl UnsafeUnpin for RemoteError
impl UnwindSafe for RemoteError
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