pub enum ProtocolErrorType {
NotFound,
HttpMethodNotAllowed,
BadRequest,
Unauthorized,
Internal,
}
Expand description
The error type of the ProtocolError
.
Variants§
Trait Implementations§
Source§impl Clone for ProtocolErrorType
impl Clone for ProtocolErrorType
Source§fn clone(&self) -> ProtocolErrorType
fn clone(&self) -> ProtocolErrorType
Returns a copy 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 ProtocolErrorType
impl Debug for ProtocolErrorType
Source§impl<'de> Deserialize<'de> for ProtocolErrorType
impl<'de> Deserialize<'de> for ProtocolErrorType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProtocolErrorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProtocolErrorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ProtocolErrorType> for JsonRpcErrorCode
impl From<ProtocolErrorType> for JsonRpcErrorCode
Source§fn from(value: ProtocolErrorType) -> JsonRpcErrorCode
fn from(value: ProtocolErrorType) -> JsonRpcErrorCode
Converts to this type from the input type.
Source§impl From<StatusCode> for ProtocolErrorType
impl From<StatusCode> for ProtocolErrorType
Source§fn from(code: StatusCode) -> ProtocolErrorType
fn from(code: StatusCode) -> ProtocolErrorType
Converts to this type from the input type.
Source§impl Into<ProtocolErrorType> for JsonRpcErrorCode
impl Into<ProtocolErrorType> for JsonRpcErrorCode
Source§fn into(self) -> ProtocolErrorType
fn into(self) -> ProtocolErrorType
Converts this type into the (usually inferred) input type.
Source§impl Into<StatusCode> for ProtocolErrorType
impl Into<StatusCode> for ProtocolErrorType
Source§fn into(self) -> StatusCode
fn into(self) -> StatusCode
Converts this type into the (usually inferred) input type.
Source§impl Serialize for ProtocolErrorType
impl Serialize for ProtocolErrorType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ProtocolErrorType
impl RefUnwindSafe for ProtocolErrorType
impl Send for ProtocolErrorType
impl Sync for ProtocolErrorType
impl Unpin for ProtocolErrorType
impl UnwindSafe for ProtocolErrorType
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