Struct jsonrpsee_types::error::ErrorResponse
source · [−]pub struct ErrorResponse<'a> { /* private fields */ }Expand description
Implementations
sourceimpl<'a> ErrorResponse<'a>
impl<'a> ErrorResponse<'a>
sourcepub fn borrowed(error: ErrorObject<'a>, id: Id<'a>) -> Self
pub fn borrowed(error: ErrorObject<'a>, id: Id<'a>) -> Self
Create a borrowed ErrorResponse.
sourcepub fn owned(error: ErrorObject<'static>, id: Id<'static>) -> Self
pub fn owned(error: ErrorObject<'static>, id: Id<'static>) -> Self
Create a borrowed ErrorResponse.
sourcepub fn into_owned(self) -> ErrorResponse<'static>
pub fn into_owned(self) -> ErrorResponse<'static>
Take ownership of the parameters within, if we haven’t already.
sourcepub fn error_object(&self) -> &ErrorObject<'_>
pub fn error_object(&self) -> &ErrorObject<'_>
Get the ErrorObject of the error response.
Trait Implementations
sourceimpl<'a> Debug for ErrorResponse<'a>
impl<'a> Debug for ErrorResponse<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for ErrorResponse<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ErrorResponse<'a>
sourcefn 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
sourceimpl<'a> Display for ErrorResponse<'a>
impl<'a> Display for ErrorResponse<'a>
sourceimpl<'a> PartialEq<ErrorResponse<'a>> for ErrorResponse<'a>
impl<'a> PartialEq<ErrorResponse<'a>> for ErrorResponse<'a>
sourcefn eq(&self, other: &ErrorResponse<'a>) -> bool
fn eq(&self, other: &ErrorResponse<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ErrorResponse<'a>) -> bool
fn ne(&self, other: &ErrorResponse<'a>) -> bool
This method tests for !=.
sourceimpl<'a> Serialize for ErrorResponse<'a>
impl<'a> Serialize for ErrorResponse<'a>
impl<'a> StructuralPartialEq for ErrorResponse<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ErrorResponse<'a>
impl<'a> Send for ErrorResponse<'a>
impl<'a> Sync for ErrorResponse<'a>
impl<'a> Unpin for ErrorResponse<'a>
impl<'a> UnwindSafe for ErrorResponse<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more