Struct jsonrpsee_types::error::ErrorResponse
source · pub struct ErrorResponse<'a> { /* private fields */ }
Expand description
Implementations§
source§impl<'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§
source§impl<'a> Debug for ErrorResponse<'a>
impl<'a> Debug for ErrorResponse<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for ErrorResponse<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ErrorResponse<'a>
source§fn 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
source§impl<'a> Display for ErrorResponse<'a>
impl<'a> Display for ErrorResponse<'a>
source§impl<'a> PartialEq<ErrorResponse<'a>> for ErrorResponse<'a>
impl<'a> PartialEq<ErrorResponse<'a>> for ErrorResponse<'a>
source§fn 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 ==
.source§impl<'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§
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