pub struct ErrorEnvelope { /* private fields */ }Expand description
Protocol-neutral RPC error envelope.
Implementations§
Source§impl ErrorEnvelope
impl ErrorEnvelope
Sourcepub const fn new(code: RpcErrorCode, message: RpcErrorMessage) -> Self
pub const fn new(code: RpcErrorCode, message: RpcErrorMessage) -> Self
Creates an error envelope.
Sourcepub const fn code(&self) -> &RpcErrorCode
pub const fn code(&self) -> &RpcErrorCode
Returns the error code.
Trait Implementations§
Source§impl Clone for ErrorEnvelope
impl Clone for ErrorEnvelope
Source§fn clone(&self) -> ErrorEnvelope
fn clone(&self) -> ErrorEnvelope
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 ErrorEnvelope
impl Debug for ErrorEnvelope
Source§impl PartialEq for ErrorEnvelope
impl PartialEq for ErrorEnvelope
impl Eq for ErrorEnvelope
impl StructuralPartialEq for ErrorEnvelope
Auto Trait Implementations§
impl Freeze for ErrorEnvelope
impl RefUnwindSafe for ErrorEnvelope
impl Send for ErrorEnvelope
impl Sync for ErrorEnvelope
impl Unpin for ErrorEnvelope
impl UnsafeUnpin for ErrorEnvelope
impl UnwindSafe for ErrorEnvelope
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