pub enum WizNetError {
Parse {
data: Option<Value>,
},
InvalidRequest {
data: Option<Value>,
},
InvalidParameters {
data: Option<Value>,
},
MethodNotFound {
data: Option<Value>,
},
Internal {
data: Option<Value>,
},
Server {
message: String,
data: Option<Value>,
},
Unknown {
message: String,
data: Option<Value>,
},
NotAWizTarget,
}Variants§
Implementations§
Source§impl WizNetError
impl WizNetError
pub fn from_rpc_error(rpcerror: RPCError) -> Self
Trait Implementations§
Source§impl Clone for WizNetError
impl Clone for WizNetError
Source§fn clone(&self) -> WizNetError
fn clone(&self) -> WizNetError
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 WizNetError
impl Debug for WizNetError
Source§impl Display for WizNetError
impl Display for WizNetError
Source§impl Error for WizNetError
impl Error for WizNetError
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()
Auto Trait Implementations§
impl Freeze for WizNetError
impl RefUnwindSafe for WizNetError
impl Send for WizNetError
impl Sync for WizNetError
impl Unpin for WizNetError
impl UnwindSafe for WizNetError
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