pub enum ServerRequestReply {
Result(Value),
Error {
code: i64,
message: String,
data: Option<Value>,
},
}Expand description
A typed reply for a server-to-client app-server request.
Result is any JSON value that matches the request’s generated response
type. Error sends a JSON-RPC error reply to the app-server.
Variants§
Implementations§
Source§impl ServerRequestReply
impl ServerRequestReply
pub fn send(self, request: PendingServerRequest) -> Result<()>
Trait Implementations§
Source§impl Clone for ServerRequestReply
impl Clone for ServerRequestReply
Source§fn clone(&self) -> ServerRequestReply
fn clone(&self) -> ServerRequestReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerRequestReply
impl Debug for ServerRequestReply
Source§impl PartialEq for ServerRequestReply
impl PartialEq for ServerRequestReply
Source§fn eq(&self, other: &ServerRequestReply) -> bool
fn eq(&self, other: &ServerRequestReply) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerRequestReply
Auto Trait Implementations§
impl Freeze for ServerRequestReply
impl RefUnwindSafe for ServerRequestReply
impl Send for ServerRequestReply
impl Sync for ServerRequestReply
impl Unpin for ServerRequestReply
impl UnsafeUnpin for ServerRequestReply
impl UnwindSafe for ServerRequestReply
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