pub struct ServerFault {
pub code: i32,
pub message: &'static str,
pub data: Option<Value>,
}Expand description
JSON-RPC failure returned by a ServerProtocol implementation.
Fields§
§code: i32§message: &'static str§data: Option<Value>Implementations§
Source§impl ServerFault
impl ServerFault
pub const fn new( code: i32, message: &'static str, data: Option<Value>, ) -> ServerFault
pub const fn method_not_found() -> ServerFault
pub const fn invalid_params() -> ServerFault
pub const fn internal() -> ServerFault
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerFault
impl RefUnwindSafe for ServerFault
impl Send for ServerFault
impl Sync for ServerFault
impl Unpin for ServerFault
impl UnsafeUnpin for ServerFault
impl UnwindSafe for ServerFault
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