pub struct ServerRequest {
pub id: RequestId,
pub method: String,
pub params: Value,
}Expand description
A request the server sent and is waiting on, such as an approval.
Answer it with AppServerHandle::respond or
AppServerHandle::respond_error. The turn that raised it makes no
progress until then.
Fields§
§id: RequestIdThe id to echo in the reply.
method: StringThe method name, for example item/commandExecution/requestApproval.
params: ValueThe method’s parameters.
Trait Implementations§
Source§impl Clone for ServerRequest
impl Clone for ServerRequest
Source§impl Debug for ServerRequest
impl Debug for ServerRequest
Source§impl PartialEq for ServerRequest
impl PartialEq for ServerRequest
impl StructuralPartialEq for ServerRequest
Auto Trait Implementations§
impl Forget for ServerRequest
impl Freeze for ServerRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ServerRequest
impl RefUnwindSafe for ServerRequest
impl Send for ServerRequest
impl Sync for ServerRequest
impl Unpin for ServerRequest
impl UnsafeUnpin for ServerRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ServerRequest
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